aboutsummaryrefslogtreecommitdiff
path: root/src/pq/pq.h
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2021-07-24 22:05:46 +0200
committerChristian Grothoff <grothoff@gnunet.org>2021-07-24 22:06:04 +0200
commit31eae6bbe16302d2593b806ef3d2ac2ca9c2d8de (patch)
treeeba886ebfd704f83f13ce1b50976e3bdca6b2449 /src/pq/pq.h
parentebd034f8139ee90336fd8e7e2f24f9c9d39c5e25 (diff)
downloadgnunet-31eae6bbe16302d2593b806ef3d2ac2ca9c2d8de.tar.gz
gnunet-31eae6bbe16302d2593b806ef3d2ac2ca9c2d8de.zip
early draft for libgnunetpq event notification support
Diffstat (limited to 'src/pq/pq.h')
-rw-r--r--src/pq/pq.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/pq/pq.h b/src/pq/pq.h
index 91a890bcb..3c89626a9 100644
--- a/src/pq/pq.h
+++ b/src/pq/pq.h
@@ -57,6 +57,26 @@ struct GNUNET_PQ_Context
57 * Path to load SQL files from. 57 * Path to load SQL files from.
58 */ 58 */
59 char *load_path; 59 char *load_path;
60
61 /**
62 * Function to call on Postgres FDs.
63 */
64 GNUNET_PQ_SocketCallback sc;
65
66 /**
67 * Closure for @e sc.
68 */
69 void *sc_cls;
70
71 /**
72 * Map managing event subscriptions.
73 */
74 struct GNUNET_CONTAINER_MultiShortmap *channel_map;
75
76 /**
77 * Lock to access @e channel_map.
78 */
79 pthread_mutex_t notify_lock;
60}; 80};
61 81
62#endif 82#endif