diff options
author | Gabor X Toth <*@tg-x.net> | 2014-01-06 00:09:37 +0000 |
---|---|---|
committer | Gabor X Toth <*@tg-x.net> | 2014-01-06 00:09:37 +0000 |
commit | c04d45b9738e1764d2e2c21efdbeb129f298d5d1 (patch) | |
tree | 9eec32efdd3fe3f9f459630af16058cc47436bce /src/psyc/psyc.h | |
parent | 83a0e31631dbc199c37c42f11004e1be544f04a8 (diff) | |
download | gnunet-c04d45b9738e1764d2e2c21efdbeb129f298d5d1.tar.gz gnunet-c04d45b9738e1764d2e2c21efdbeb129f298d5d1.zip |
psyc: ipc messages
Diffstat (limited to 'src/psyc/psyc.h')
-rw-r--r-- | src/psyc/psyc.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/psyc/psyc.h b/src/psyc/psyc.h index 85d10858e..90c07480a 100644 --- a/src/psyc/psyc.h +++ b/src/psyc/psyc.h | |||
@@ -29,6 +29,20 @@ | |||
29 | 29 | ||
30 | #include "gnunet_common.h" | 30 | #include "gnunet_common.h" |
31 | 31 | ||
32 | |||
33 | enum MessageState | ||
34 | { | ||
35 | MSG_STATE_START = 0, | ||
36 | MSG_STATE_HEADER = 1, | ||
37 | MSG_STATE_METHOD = 2, | ||
38 | MSG_STATE_MODIFIER = 3, | ||
39 | MSG_STATE_MOD_CONT = 4, | ||
40 | MSG_STATE_DATA = 5, | ||
41 | MSG_STATE_END = 6, | ||
42 | MSG_STATE_CANCEL = 7, | ||
43 | }; | ||
44 | |||
45 | |||
32 | GNUNET_NETWORK_STRUCT_BEGIN | 46 | GNUNET_NETWORK_STRUCT_BEGIN |
33 | 47 | ||
34 | /**** service -> library ****/ | 48 | /**** service -> library ****/ |
@@ -53,8 +67,7 @@ struct OperationResult | |||
53 | */ | 67 | */ |
54 | int64_t result_code GNUNET_PACKED; | 68 | int64_t result_code GNUNET_PACKED; |
55 | 69 | ||
56 | /* followed by 0-terminated error message (on error) */ | 70 | /* followed by NUL-terminated error message (on error) */ |
57 | |||
58 | }; | 71 | }; |
59 | 72 | ||
60 | 73 | ||
@@ -74,6 +87,7 @@ struct CountersResult | |||
74 | }; | 87 | }; |
75 | 88 | ||
76 | 89 | ||
90 | #if REMOVE | ||
77 | /** | 91 | /** |
78 | * Transmit acknowledgment. | 92 | * Transmit acknowledgment. |
79 | * | 93 | * |
@@ -95,6 +109,7 @@ struct TransmitAck | |||
95 | */ | 109 | */ |
96 | uint16_t buf_avail; | 110 | uint16_t buf_avail; |
97 | }; | 111 | }; |
112 | #endif | ||
98 | 113 | ||
99 | 114 | ||
100 | /**** library -> service ****/ | 115 | /**** library -> service ****/ |