aboutsummaryrefslogtreecommitdiffstats
path: root/src/filter.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-07-11 00:31:13 +0200
committerMattias Andrée <maandree@kth.se>2016-07-11 00:31:13 +0200
commit37777e89cd284e8cbd621969eeccc1e54972e4b0 (patch)
treefd89fac0151cd54c6dd60200d0fb187fa8b6e1c3 /src/filter.h
parentSort outputs by name (diff)
downloadcoopgammad-37777e89cd284e8cbd621969eeccc1e54972e4b0.tar.gz
coopgammad-37777e89cd284e8cbd621969eeccc1e54972e4b0.tar.bz2
coopgammad-37777e89cd284e8cbd621969eeccc1e54972e4b0.tar.xz
Implement -p
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/filter.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/filter.h b/src/filter.h
index d53650c..f625125 100644
--- a/src/filter.h
+++ b/src/filter.h
@@ -51,7 +51,8 @@ struct filter
{
/**
* The client that applied it. This need not be
- * set unless `.lifespan == LIFESPAN_UNTIL_DEATH`.
+ * set unless `.lifespan == LIFESPAN_UNTIL_DEATH`
+ * and unless the process itself added this.
* This is the file descriptor of the client's
* connection.
*/
@@ -106,7 +107,7 @@ void filter_destroy(struct filter* this);
* @param ramps_size The byte-size of `filter->ramps`
* @return The number of marshalled byte
*/
-size_t filter_marshal(const struct filter* this, char* buf, size_t ramps_size);
+size_t filter_marshal(const struct filter* this, void* buf, size_t ramps_size);
/**
* Unmarshal a filter
@@ -117,5 +118,5 @@ size_t filter_marshal(const struct filter* this, char* buf, size_t ramps_size);
* @param ramps_size The byte-size of `filter->ramps`
* @return The number of unmarshalled bytes, 0 on error
*/
-size_t filter_unmarshal(struct filter* this, const char* buf, size_t ramps_size);
+size_t filter_unmarshal(struct filter* this, const void* buf, size_t ramps_size);