diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2006-10-07 19:46:28 +0200 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2006-10-07 19:46:28 +0200 |
commit | 36e9f62a6e6fdb1217b3b819320ac5a94025c448 (patch) | |
tree | c91d57d1f8fa144e1ffce2ae3143de5b30460b0c /lib/misc.h | |
parent | 090f1cbe72373b31e753af4a1442ddd53b02791b (diff) |
Added SRV lookups to automatically find out the correct server for a
domain.
Diffstat (limited to 'lib/misc.h')
-rw-r--r-- | lib/misc.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -29,6 +29,14 @@ #include <gmodule.h> #include <time.h> +struct ns_srv_reply +{ + int prio; + int weight; + int port; + char name[]; +}; + G_MODULE_EXPORT void strip_linefeed( gchar *text ); G_MODULE_EXPORT char *add_cr( char *text ); G_MODULE_EXPORT char *strip_newlines(char *source); @@ -53,4 +61,6 @@ G_MODULE_EXPORT void random_bytes( unsigned char *buf, int count ); G_MODULE_EXPORT int is_bool( char *value ); G_MODULE_EXPORT int bool2int( char *value ); +G_MODULE_EXPORT struct ns_srv_reply *srv_lookup( char *service, char *protocol, char *domain ); + #endif |