less unprefixed structs
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24888 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -157,15 +157,12 @@ typedef enum {
|
|||||||
#define MAXDNAME 1025
|
#define MAXDNAME 1025
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define dns_query rk_dns_query
|
|
||||||
#define mx_record rk_mx_record
|
#define mx_record rk_mx_record
|
||||||
#define srv_record rk_srv_record
|
#define srv_record rk_srv_record
|
||||||
#define key_record rk_key_record
|
#define key_record rk_key_record
|
||||||
#define sig_record rk_sig_record
|
#define sig_record rk_sig_record
|
||||||
#define cert_record rk_cert_record
|
#define cert_record rk_cert_record
|
||||||
#define sshfp_record rk_sshfp_record
|
#define sshfp_record rk_sshfp_record
|
||||||
#define resource_record rk_resource_record
|
|
||||||
#define dns_reply rk_dns_reply
|
|
||||||
|
|
||||||
struct rk_dns_query{
|
struct rk_dns_query{
|
||||||
char *domain;
|
char *domain;
|
||||||
@@ -173,19 +170,19 @@ struct rk_dns_query{
|
|||||||
unsigned class;
|
unsigned class;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct mx_record{
|
struct rk_mx_record{
|
||||||
unsigned preference;
|
unsigned preference;
|
||||||
char domain[1];
|
char domain[1];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct srv_record{
|
struct rk_srv_record{
|
||||||
unsigned priority;
|
unsigned priority;
|
||||||
unsigned weight;
|
unsigned weight;
|
||||||
unsigned port;
|
unsigned port;
|
||||||
char target[1];
|
char target[1];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct key_record {
|
struct rk_key_record {
|
||||||
unsigned flags;
|
unsigned flags;
|
||||||
unsigned protocol;
|
unsigned protocol;
|
||||||
unsigned algorithm;
|
unsigned algorithm;
|
||||||
@@ -193,7 +190,7 @@ struct key_record {
|
|||||||
u_char key_data[1];
|
u_char key_data[1];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct sig_record {
|
struct rk_sig_record {
|
||||||
unsigned type;
|
unsigned type;
|
||||||
unsigned algorithm;
|
unsigned algorithm;
|
||||||
unsigned labels;
|
unsigned labels;
|
||||||
@@ -206,7 +203,7 @@ struct sig_record {
|
|||||||
char sig_data[1]; /* also includes signer */
|
char sig_data[1]; /* also includes signer */
|
||||||
};
|
};
|
||||||
|
|
||||||
struct cert_record {
|
struct rk_cert_record {
|
||||||
unsigned type;
|
unsigned type;
|
||||||
unsigned tag;
|
unsigned tag;
|
||||||
unsigned algorithm;
|
unsigned algorithm;
|
||||||
@@ -214,14 +211,14 @@ struct cert_record {
|
|||||||
u_char cert_data[1];
|
u_char cert_data[1];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct sshfp_record {
|
struct rk_sshfp_record {
|
||||||
unsigned algorithm;
|
unsigned algorithm;
|
||||||
unsigned type;
|
unsigned type;
|
||||||
size_t sshfp_len;
|
size_t sshfp_len;
|
||||||
u_char sshfp_data[1];
|
u_char sshfp_data[1];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ds_record {
|
struct rk_ds_record {
|
||||||
unsigned key_tag;
|
unsigned key_tag;
|
||||||
unsigned algorithm;
|
unsigned algorithm;
|
||||||
unsigned digest_type;
|
unsigned digest_type;
|
||||||
@@ -237,16 +234,16 @@ struct rk_resource_record{
|
|||||||
unsigned size;
|
unsigned size;
|
||||||
union {
|
union {
|
||||||
void *data;
|
void *data;
|
||||||
struct mx_record *mx;
|
struct rk_mx_record *mx;
|
||||||
struct mx_record *afsdb; /* mx and afsdb are identical */
|
struct rk_mx_record *afsdb; /* mx and afsdb are identical */
|
||||||
struct srv_record *srv;
|
struct rk_srv_record *srv;
|
||||||
struct in_addr *a;
|
struct in_addr *a;
|
||||||
char *txt;
|
char *txt;
|
||||||
struct key_record *key;
|
struct rk_key_record *key;
|
||||||
struct cert_record *cert;
|
struct rk_cert_record *cert;
|
||||||
struct sig_record *sig;
|
struct rk_sig_record *sig;
|
||||||
struct sshfp_record *sshfp;
|
struct rk_sshfp_record *sshfp;
|
||||||
struct ds_record *ds;
|
struct rk_ds_record *ds;
|
||||||
}u;
|
}u;
|
||||||
struct rk_resource_record *next;
|
struct rk_resource_record *next;
|
||||||
};
|
};
|
||||||
@@ -282,16 +279,16 @@ struct rk_dns_reply{
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct dns_reply* ROKEN_LIB_FUNCTION
|
struct rk_dns_reply* ROKEN_LIB_FUNCTION
|
||||||
rk_dns_lookup(const char *, const char *);
|
rk_dns_lookup(const char *, const char *);
|
||||||
void ROKEN_LIB_FUNCTION
|
void ROKEN_LIB_FUNCTION
|
||||||
rk_dns_free_data(struct dns_reply *);
|
rk_dns_free_data(struct rk_dns_reply *);
|
||||||
int ROKEN_LIB_FUNCTION
|
int ROKEN_LIB_FUNCTION
|
||||||
rk_dns_string_to_type(const char *name);
|
rk_dns_string_to_type(const char *name);
|
||||||
const char *ROKEN_LIB_FUNCTION
|
const char *ROKEN_LIB_FUNCTION
|
||||||
rk_dns_type_to_string(int type);
|
rk_dns_type_to_string(int type);
|
||||||
void ROKEN_LIB_FUNCTION
|
void ROKEN_LIB_FUNCTION
|
||||||
rk_dns_srv_order(struct dns_reply*);
|
rk_dns_srv_order(struct rk_dns_reply*);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user