summaryrefslogtreecommitdiff
path: root/include/local.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/local.h')
-rw-r--r--include/local.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/local.h b/include/local.h
index 6940755..f9121b1 100644
--- a/include/local.h
+++ b/include/local.h
@@ -16,11 +16,16 @@ struct local_server {
char path[UNIX_PATH_MAX];
};
+/* callback return values */
+#define LOCAL_RET_ERROR -1
+#define LOCAL_RET_OK 0
+#define LOCAL_RET_STOLEN 1
+
/* local server */
int local_server_create(struct local_server *server, struct local_conf *conf);
void local_server_destroy(struct local_server *server);
int do_local_server_step(struct local_server *server, void *data,
- void (*process)(int fd, void *data));
+ int (*process)(int fd, void *data));
/* local client */
int local_client_create(struct local_conf *conf);