]> git.ozlabs.org Git - ccan-lca-2011.git/blobdiff - ccan/oserver/oserver.h
lca2011: don't use void * for the handle.
[ccan-lca-2011.git] / ccan / oserver / oserver.h
index e1f3cc70869ae89df3f2dfd4689dd9e3840ad80c..6b9a3e75c0ddce73d0d583ae28ab8af9b9694f59 100644 (file)
@@ -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 */