diff options
Diffstat (limited to 'src/fs/fs.c')
-rw-r--r-- | src/fs/fs.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/fs/fs.c b/src/fs/fs.c index 66699507b..8396fc18f 100644 --- a/src/fs/fs.c +++ b/src/fs/fs.c | |||
@@ -37,13 +37,18 @@ | |||
37 | * @param client_name unique identifier for this client | 37 | * @param client_name unique identifier for this client |
38 | * @param upcb function to call to notify about FS actions | 38 | * @param upcb function to call to notify about FS actions |
39 | * @param upcb_cls closure for upcb | 39 | * @param upcb_cls closure for upcb |
40 | * @param flags specific attributes for fs-operations | ||
41 | * @param ... list of optional options, terminated with GNUNET_FS_OPTIONS_END | ||
42 | * @return NULL on error | ||
40 | */ | 43 | */ |
41 | struct GNUNET_FS_Handle * | 44 | struct GNUNET_FS_Handle * |
42 | GNUNET_FS_start (struct GNUNET_SCHEDULER_Handle *sched, | 45 | GNUNET_FS_start (struct GNUNET_SCHEDULER_Handle *sched, |
43 | const struct GNUNET_CONFIGURATION_Handle *cfg, | 46 | const struct GNUNET_CONFIGURATION_Handle *cfg, |
44 | const char *client_name, | 47 | const char *client_name, |
45 | GNUNET_FS_ProgressCallback upcb, | 48 | GNUNET_FS_ProgressCallback upcb, |
46 | void *upcb_cls) | 49 | void *upcb_cls, |
50 | enum GNUNET_FS_Flags flags, | ||
51 | ...) | ||
47 | { | 52 | { |
48 | struct GNUNET_FS_Handle *ret; | 53 | struct GNUNET_FS_Handle *ret; |
49 | struct GNUNET_CLIENT_Connection *client; | 54 | struct GNUNET_CLIENT_Connection *client; |
@@ -60,6 +65,8 @@ GNUNET_FS_start (struct GNUNET_SCHEDULER_Handle *sched, | |||
60 | ret->upcb = upcb; | 65 | ret->upcb = upcb; |
61 | ret->upcb_cls = upcb_cls; | 66 | ret->upcb_cls = upcb_cls; |
62 | ret->client = client; | 67 | ret->client = client; |
68 | ret->flags = flags; | ||
69 | // FIXME: process varargs! | ||
63 | // FIXME: setup receive-loop with client | 70 | // FIXME: setup receive-loop with client |
64 | 71 | ||
65 | // FIXME: deserialize state; use client-name to find master-directory! | 72 | // FIXME: deserialize state; use client-name to find master-directory! |