diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-10-01 12:53:07 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-10-01 12:53:07 +0000 |
commit | f7fac7f6736df4e350a8b5ed7d9f51782d7e039e (patch) | |
tree | 6eee38f2dbc4de932c22d213dde60cf06992b127 /src/fs/gnunet-service-fs_lc.h | |
parent | 760f75d2d87f01ca93ebfb349eedbb4224c03c7c (diff) | |
download | gnunet-f7fac7f6736df4e350a8b5ed7d9f51782d7e039e.tar.gz gnunet-f7fac7f6736df4e350a8b5ed7d9f51782d7e039e.zip |
migrating fs to new service API
Diffstat (limited to 'src/fs/gnunet-service-fs_lc.h')
-rw-r--r-- | src/fs/gnunet-service-fs_lc.h | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/src/fs/gnunet-service-fs_lc.h b/src/fs/gnunet-service-fs_lc.h index c06166685..6671ed33c 100644 --- a/src/fs/gnunet-service-fs_lc.h +++ b/src/fs/gnunet-service-fs_lc.h | |||
@@ -29,59 +29,5 @@ | |||
29 | #include "gnunet-service-fs.h" | 29 | #include "gnunet-service-fs.h" |
30 | 30 | ||
31 | 31 | ||
32 | /** | ||
33 | * Look up a local client record or create one if it | ||
34 | * doesn't exist yet. | ||
35 | * | ||
36 | * @param client handle of the client | ||
37 | * @return handle to local client entry | ||
38 | */ | ||
39 | struct GSF_LocalClient * | ||
40 | GSF_local_client_lookup_ (struct GNUNET_SERVER_Client *client); | ||
41 | |||
42 | |||
43 | /** | ||
44 | * Handle START_SEARCH-message (search request from local client). | ||
45 | * Only responsible for creating the request entry itself and setting | ||
46 | * up reply callback and cancellation on client disconnect. Does NOT | ||
47 | * execute the actual request strategy (planning). | ||
48 | * | ||
49 | * @param client identification of the client | ||
50 | * @param message the actual message | ||
51 | * @param prptr where to store the pending request handle for the request | ||
52 | * @return GNUNET_YES to start local processing, | ||
53 | * GNUNET_NO to not (yet) start local processing, | ||
54 | * GNUNET_SYSERR on error | ||
55 | */ | ||
56 | int | ||
57 | GSF_local_client_start_search_handler_ (struct GNUNET_SERVER_Client *client, | ||
58 | const struct GNUNET_MessageHeader | ||
59 | *message, | ||
60 | struct GSF_PendingRequest **prptr); | ||
61 | |||
62 | |||
63 | /** | ||
64 | * Transmit a message to the given local client as soon as possible. | ||
65 | * If the client disconnects before transmission, the message is | ||
66 | * simply discarded. | ||
67 | * | ||
68 | * @param lc recipient | ||
69 | * @param msg message to transmit to client | ||
70 | */ | ||
71 | void | ||
72 | GSF_local_client_transmit_ (struct GSF_LocalClient *lc, | ||
73 | const struct GNUNET_MessageHeader *msg); | ||
74 | |||
75 | |||
76 | /** | ||
77 | * A client disconnected from us. Tear down the local client record. | ||
78 | * | ||
79 | * @param cls unused | ||
80 | * @param client handle of the client | ||
81 | */ | ||
82 | void | ||
83 | GSF_client_disconnect_handler_ (void *cls, struct GNUNET_SERVER_Client *client); | ||
84 | |||
85 | |||
86 | #endif | 32 | #endif |
87 | /* end of gnunet-service-fs_lc.h */ | 33 | /* end of gnunet-service-fs_lc.h */ |