aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/internal.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2007-08-30 06:59:15 +0000
committerChristian Grothoff <christian@grothoff.org>2007-08-30 06:59:15 +0000
commitb259da7c7f97e1fbafeef634bd16af3a21f83e72 (patch)
tree6d51feb9f34832e27e831c8a05bc865186f35a67 /src/daemon/internal.h
parent44f694198ba0d2b9b7172468989a83f6e1e51929 (diff)
downloadlibmicrohttpd-b259da7c7f97e1fbafeef634bd16af3a21f83e72.tar.gz
libmicrohttpd-b259da7c7f97e1fbafeef634bd16af3a21f83e72.zip
improving API to allow clients to associate state with a connection and to be notified about request termination
Diffstat (limited to 'src/daemon/internal.h')
-rw-r--r--src/daemon/internal.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/daemon/internal.h b/src/daemon/internal.h
index 353312b4..b6f8336e 100644
--- a/src/daemon/internal.h
+++ b/src/daemon/internal.h
@@ -203,6 +203,14 @@ struct MHD_Connection
203 struct MemoryPool *pool; 203 struct MemoryPool *pool;
204 204
205 /** 205 /**
206 * We allow the main application to associate some
207 * pointer with the connection. Here is where we
208 * store it. (MHD does not know or care what it
209 * is).
210 */
211 void * client_context;
212
213 /**
206 * Request method. Should be GET/POST/etc. Allocated 214 * Request method. Should be GET/POST/etc. Allocated
207 * in pool. 215 * in pool.
208 */ 216 */
@@ -376,6 +384,10 @@ struct MHD_Daemon
376 384
377 void *apc_cls; 385 void *apc_cls;
378 386
387 MHD_RequestCompletedCallback notify_completed;
388
389 void * notify_completed_cls;
390
379 /** 391 /**
380 * PID of the select thread (if we have internal select) 392 * PID of the select thread (if we have internal select)
381 */ 393 */