diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-01-30 16:02:52 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-01-30 16:02:52 +0000 |
commit | bc0e1c956bef848d2569e0c56ccbda13597418f7 (patch) | |
tree | 88d82a018890ed112c61f21fe2f38e2fe1edc89f /src/fs/gnunet-service-fs_lc.h | |
parent | dee60c25690117fabb90b497dbe23378b3e00db1 (diff) | |
download | gnunet-bc0e1c956bef848d2569e0c56ccbda13597418f7.tar.gz gnunet-bc0e1c956bef848d2569e0c56ccbda13597418f7.zip |
stuff
Diffstat (limited to 'src/fs/gnunet-service-fs_lc.h')
-rw-r--r-- | src/fs/gnunet-service-fs_lc.h | 44 |
1 files changed, 3 insertions, 41 deletions
diff --git a/src/fs/gnunet-service-fs_lc.h b/src/fs/gnunet-service-fs_lc.h index 2663fbc67..e9b77aa59 100644 --- a/src/fs/gnunet-service-fs_lc.h +++ b/src/fs/gnunet-service-fs_lc.h | |||
@@ -67,53 +67,15 @@ GSF_local_client_transmit_ (struct GSF_LocalClient *lc, | |||
67 | 67 | ||
68 | 68 | ||
69 | /** | 69 | /** |
70 | * A local client disconnected from us. Tear down the local client | 70 | * A client disconnected from us. Tear down the local client record. |
71 | * record. | ||
72 | * | 71 | * |
73 | * @param cls unused | 72 | * @param cls unused |
74 | * @param client handle of the client | 73 | * @param client handle of the client |
75 | */ | 74 | */ |
76 | void | 75 | void |
77 | GSF_local_client_disconnect_handler_ (void *cls, | 76 | GSF_client_disconnect_handler_ (void *cls, |
78 | const struct GNUNET_SERVER_Client *client); | 77 | const struct GNUNET_SERVER_Client *client); |
79 | 78 | ||
80 | 79 | ||
81 | |||
82 | /** | ||
83 | * Signature of function called on a local client | ||
84 | * | ||
85 | * @param cls closure | ||
86 | * @param lc local client handle | ||
87 | */ | ||
88 | typedef int (*GSF_LocalClientIterator)(void *cls, | ||
89 | struct GSF_LocalClient *lc); | ||
90 | |||
91 | |||
92 | |||
93 | /** | ||
94 | * Register callback to invoke on local client disconnect. | ||
95 | * | ||
96 | * @param lc client to monitor | ||
97 | * @param it function to call on disconnect | ||
98 | * @param it_cls closure for it | ||
99 | */ | ||
100 | void | ||
101 | GSF_local_client_register_disconnect_callback_ (struct GSF_LocalClient *lc, | ||
102 | GSF_LocalClientIterator it, | ||
103 | void *it_cls); | ||
104 | |||
105 | |||
106 | /** | ||
107 | * Register callback to invoke on local client disconnect. | ||
108 | * | ||
109 | * @param lc client to stop monitoring | ||
110 | * @param it function to no longer call on disconnect | ||
111 | * @param it_cls closure for it | ||
112 | */ | ||
113 | void | ||
114 | GSF_local_client_unregister_disconnect_callback_ (struct GSF_LocalClient *lc, | ||
115 | GSF_PendingRequestIterator it, | ||
116 | void *it_cls); | ||
117 | |||
118 | #endif | 80 | #endif |
119 | /* end of gnunet-service-fs_lc.h */ | 81 | /* end of gnunet-service-fs_lc.h */ |