X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Foserver%2Foserver.h;h=6b9a3e75c0ddce73d0d583ae28ab8af9b9694f59;hb=9dea47ccb8dacf364bf15f4e30f871ab455b6e04;hp=e1f3cc70869ae89df3f2dfd4689dd9e3840ad80c;hpb=5807ed8dff7520582ee88f16c98b3965389bf8ff;p=ccan-lca-2011.git diff --git a/ccan/oserver/oserver.h b/ccan/oserver/oserver.h index e1f3cc7..6b9a3e7 100644 --- a/ccan/oserver/oserver.h +++ b/ccan/oserver/oserver.h @@ -9,10 +9,11 @@ * @port: port to use (usually OSERVER_PORT) * * Opens a socket and binds it to @port, then sets it up to listen - * for connections. talloc_free() the pointer returned to shut it down. + * for connections. talloc_free() the pointer returned to shut it down + * (its parent is the tevent_context). * * Example: - * void *oserver; + * struct oserver *oserver; * struct tevent_context *ev; * * ev = tevent_context_init(NULL); @@ -23,7 +24,7 @@ * while (tevent_loop_wait(ev) == 0); * err(1, "Event loop failed"); */ -void *oserver_setup(struct tevent_context *ev, unsigned short port); +struct oserver *oserver_setup(struct tevent_context *ev, unsigned short port); #define OSERVER_PORT 2727 #endif /* CCAN_OSERVER_H */