<div dir="ltr">Ooops, sorry about double post -.-</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014/1/18 Daniel Buch <span dir="ltr"><<a href="mailto:boogiewasthere@gmail.com" target="_blank">boogiewasthere@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">---<br>
src/libsystemd/sd-resolve.c | 36 ++++++++++++++++++------------------<br>
1 file changed, 18 insertions(+), 18 deletions(-)<br>
<br>
diff --git a/src/libsystemd/sd-resolve.c b/src/libsystemd/sd-resolve.c<br>
index b6bf8d4..464967b 100644<br>
--- a/src/libsystemd/sd-resolve.c<br>
+++ b/src/libsystemd/sd-resolve.c<br>
@@ -414,7 +414,7 @@ static void* thread_worker(void *p) {<br>
return NULL;<br>
}<br>
<br>
-sd_resolve* sd_resolve_new(unsigned n_proc) {<br>
+_public_ sd_resolve* sd_resolve_new(unsigned n_proc) {<br>
sd_resolve *resolve = NULL;<br>
int i, r;<br>
<br>
@@ -468,7 +468,7 @@ fail:<br>
return NULL;<br>
}<br>
<br>
-void sd_resolve_free(sd_resolve *resolve) {<br>
+_public_ void sd_resolve_free(sd_resolve *resolve) {<br>
int i;<br>
int saved_errno = errno;<br>
unsigned p;<br>
@@ -511,7 +511,7 @@ void sd_resolve_free(sd_resolve *resolve) {<br>
errno = saved_errno;<br>
}<br>
<br>
-int sd_resolve_fd(sd_resolve *resolve) {<br>
+_public_ int sd_resolve_fd(sd_resolve *resolve) {<br>
assert(resolve);<br>
<br>
return resolve->fds[RESPONSE_RECV_FD];<br>
@@ -709,7 +709,7 @@ static int handle_response(sd_resolve *resolve, const Packet *packet, size_t len<br>
return 0;<br>
}<br>
<br>
-int sd_resolve_wait(sd_resolve *resolve, int block) {<br>
+_public_ int sd_resolve_wait(sd_resolve *resolve, int block) {<br>
int handled = 0;<br>
assert(resolve);<br>
<br>
@@ -787,7 +787,7 @@ static sd_resolve_query *alloc_query(sd_resolve *resolve) {<br>
return q;<br>
}<br>
<br>
-sd_resolve_query* sd_resolve_getaddrinfo(sd_resolve *resolve, const char *node, const char *service, const struct addrinfo *hints) {<br>
+_public_ sd_resolve_query* sd_resolve_getaddrinfo(sd_resolve *resolve, const char *node, const char *service, const struct addrinfo *hints) {<br>
AddrInfoRequest data[BUFSIZE/sizeof(AddrInfoRequest) + 1] = {};<br>
AddrInfoRequest *req = data;<br>
sd_resolve_query *q;<br>
@@ -840,7 +840,7 @@ fail:<br>
return NULL;<br>
}<br>
<br>
-int sd_resolve_getaddrinfo_done(sd_resolve *resolve, sd_resolve_query* q, struct addrinfo **ret_res) {<br>
+_public_ int sd_resolve_getaddrinfo_done(sd_resolve *resolve, sd_resolve_query* q, struct addrinfo **ret_res) {<br>
int ret;<br>
assert(resolve);<br>
assert(q);<br>
@@ -871,7 +871,7 @@ int sd_resolve_getaddrinfo_done(sd_resolve *resolve, sd_resolve_query* q, struct<br>
return ret;<br>
}<br>
<br>
-sd_resolve_query* sd_resolve_getnameinfo(sd_resolve *resolve, const struct sockaddr *sa, socklen_t salen, int flags, int gethost, int getserv) {<br>
+_public_ sd_resolve_query* sd_resolve_getnameinfo(sd_resolve *resolve, const struct sockaddr *sa, socklen_t salen, int flags, int gethost, int getserv) {<br>
NameInfoRequest data[BUFSIZE/sizeof(NameInfoRequest) + 1] = {};<br>
NameInfoRequest *req = data;<br>
sd_resolve_query *q;<br>
@@ -917,7 +917,7 @@ fail:<br>
return NULL;<br>
}<br>
<br>
-int sd_resolve_getnameinfo_done(sd_resolve *resolve, sd_resolve_query* q, char *ret_host, size_t hostlen, char *ret_serv, size_t servlen) {<br>
+_public_ int sd_resolve_getnameinfo_done(sd_resolve *resolve, sd_resolve_query* q, char *ret_host, size_t hostlen, char *ret_serv, size_t servlen) {<br>
int ret;<br>
assert(resolve);<br>
assert(q);<br>
@@ -1002,15 +1002,15 @@ fail:<br>
return NULL;<br>
}<br>
<br>
-sd_resolve_query* sd_resolve_res_query(sd_resolve *resolve, const char *dname, int class, int type) {<br>
+_public_ sd_resolve_query* sd_resolve_res_query(sd_resolve *resolve, const char *dname, int class, int type) {<br>
return resolve_res(resolve, REQUEST_RES_QUERY, dname, class, type);<br>
}<br>
<br>
-sd_resolve_query* sd_resolve_res_search(sd_resolve *resolve, const char *dname, int class, int type) {<br>
+_public_ sd_resolve_query* sd_resolve_res_search(sd_resolve *resolve, const char *dname, int class, int type) {<br>
return resolve_res(resolve, REQUEST_RES_SEARCH, dname, class, type);<br>
}<br>
<br>
-int sd_resolve_res_done(sd_resolve *resolve, sd_resolve_query* q, unsigned char **answer) {<br>
+_public_ int sd_resolve_res_done(sd_resolve *resolve, sd_resolve_query* q, unsigned char **answer) {<br>
int ret;<br>
assert(resolve);<br>
assert(q);<br>
@@ -1043,17 +1043,17 @@ int sd_resolve_res_done(sd_resolve *resolve, sd_resolve_query* q, unsigned char<br>
return ret < 0 ? -errno : ret;<br>
}<br>
<br>
-sd_resolve_query* sd_resolve_get_next(sd_resolve *resolve) {<br>
+_public_ sd_resolve_query* sd_resolve_get_next(sd_resolve *resolve) {<br>
assert(resolve);<br>
return resolve->done_head;<br>
}<br>
<br>
-int sd_resolve_get_n_queries(sd_resolve *resolve) {<br>
+_public_ int sd_resolve_get_n_queries(sd_resolve *resolve) {<br>
assert(resolve);<br>
return resolve->n_queries;<br>
}<br>
<br>
-void sd_resolve_cancel(sd_resolve *resolve, sd_resolve_query* q) {<br>
+_public_ void sd_resolve_cancel(sd_resolve *resolve, sd_resolve_query* q) {<br>
int i;<br>
int saved_errno = errno;<br>
<br>
@@ -1089,7 +1089,7 @@ void sd_resolve_cancel(sd_resolve *resolve, sd_resolve_query* q) {<br>
errno = saved_errno;<br>
}<br>
<br>
-void sd_resolve_freeaddrinfo(struct addrinfo *ai) {<br>
+_public_ void sd_resolve_freeaddrinfo(struct addrinfo *ai) {<br>
int saved_errno = errno;<br>
<br>
while (ai) {<br>
@@ -1105,7 +1105,7 @@ void sd_resolve_freeaddrinfo(struct addrinfo *ai) {<br>
errno = saved_errno;<br>
}<br>
<br>
-int sd_resolve_isdone(sd_resolve *resolve, sd_resolve_query*q) {<br>
+_public_ int sd_resolve_isdone(sd_resolve *resolve, sd_resolve_query*q) {<br>
assert(resolve);<br>
assert(q);<br>
assert(q->resolve == resolve);<br>
@@ -1113,7 +1113,7 @@ int sd_resolve_isdone(sd_resolve *resolve, sd_resolve_query*q) {<br>
return q->done;<br>
}<br>
<br>
-void sd_resolve_setuserdata(sd_resolve *resolve, sd_resolve_query *q, void *userdata) {<br>
+_public_ void sd_resolve_setuserdata(sd_resolve *resolve, sd_resolve_query *q, void *userdata) {<br>
assert(q);<br>
assert(resolve);<br>
assert(q->resolve = resolve);<br>
@@ -1121,7 +1121,7 @@ void sd_resolve_setuserdata(sd_resolve *resolve, sd_resolve_query *q, void *user<br>
q->userdata = userdata;<br>
}<br>
<br>
-void* sd_resolve_getuserdata(sd_resolve *resolve, sd_resolve_query *q) {<br>
+_public_ void* sd_resolve_getuserdata(sd_resolve *resolve, sd_resolve_query *q) {<br>
assert(q);<br>
assert(resolve);<br>
assert(q->resolve = resolve);<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.8.5.3<br>
<br>
</font></span></blockquote></div><br></div>