diff options
author | Gabor X Toth <*@tg-x.net> | 2016-01-15 22:12:29 +0000 |
---|---|---|
committer | Gabor X Toth <*@tg-x.net> | 2016-01-15 22:12:29 +0000 |
commit | 377e7340cce5136867734fb19e89a5fc51ac0c99 (patch) | |
tree | 8dbf1f5ccec45b91367c32b67a031a7a73a4ab2d /src/include/gnunet_social_service.h | |
parent | 61e8794662ce2fc6ca669906822840a3743b4b78 (diff) | |
download | gnunet-377e7340cce5136867734fb19e89a5fc51ac0c99.tar.gz gnunet-377e7340cce5136867734fb19e89a5fc51ac0c99.zip |
social: set/clear msg proc flags
Diffstat (limited to 'src/include/gnunet_social_service.h')
-rw-r--r-- | src/include/gnunet_social_service.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/include/gnunet_social_service.h b/src/include/gnunet_social_service.h index 4ad6036a9..75038407b 100644 --- a/src/include/gnunet_social_service.h +++ b/src/include/gnunet_social_service.h | |||
@@ -232,6 +232,12 @@ extern "C" | |||
232 | */ | 232 | */ |
233 | #define GNUNET_SOCIAL_APP_MAX_ID_SIZE 256 | 233 | #define GNUNET_SOCIAL_APP_MAX_ID_SIZE 256 |
234 | 234 | ||
235 | enum GNUNET_SOCIAL_MsgProcFlags { | ||
236 | GNUNET_SOCIAL_MSG_PROC_NONE = 0, | ||
237 | GNUNET_SOCIAL_MSG_PROC_RELAY = 1, | ||
238 | GNUNET_SOCIAL_MSG_PROC_SAVE= 2, | ||
239 | }; | ||
240 | |||
235 | /** | 241 | /** |
236 | * Handle for an application. | 242 | * Handle for an application. |
237 | */ | 243 | */ |
@@ -1063,6 +1069,28 @@ struct GNUNET_SOCIAL_HistoryRequest; | |||
1063 | 1069 | ||
1064 | 1070 | ||
1065 | /** | 1071 | /** |
1072 | * Set message processing @a flags for a @a method_prefix. | ||
1073 | * | ||
1074 | * @param plc | ||
1075 | * Place. | ||
1076 | * @param method_prefix | ||
1077 | * Method prefix @a flags apply to. | ||
1078 | * @param flags | ||
1079 | * The flags that apply to a matching @a method_prefix. | ||
1080 | */ | ||
1081 | void | ||
1082 | GNUNET_SOCIAL_place_msg_proc_set (struct GNUNET_SOCIAL_Place *plc, | ||
1083 | const char *method_prefix, | ||
1084 | enum GNUNET_SOCIAL_MsgProcFlags flags); | ||
1085 | |||
1086 | /** | ||
1087 | * Clear all message processing flags previously set for this place. | ||
1088 | */ | ||
1089 | void | ||
1090 | GNUNET_SOCIAL_place_msg_proc_clear (struct GNUNET_SOCIAL_Place *plc); | ||
1091 | |||
1092 | |||
1093 | /** | ||
1066 | * Learn about the history of a place. | 1094 | * Learn about the history of a place. |
1067 | * | 1095 | * |
1068 | * Messages are returned through the @a slicer function | 1096 | * Messages are returned through the @a slicer function |