diff options
Diffstat (limited to 'src/arm/arm.h')
-rw-r--r-- | src/arm/arm.h | 45 |
1 files changed, 43 insertions, 2 deletions
diff --git a/src/arm/arm.h b/src/arm/arm.h index 983586060..bddcd7cf3 100644 --- a/src/arm/arm.h +++ b/src/arm/arm.h | |||
@@ -93,6 +93,44 @@ struct GNUNET_ARM_ResultMessage { | |||
93 | uint32_t result; | 93 | uint32_t result; |
94 | }; | 94 | }; |
95 | 95 | ||
96 | struct GNUNET_ARM_ServiceInfoMessage { | ||
97 | /** | ||
98 | * String pool index for the service's name. | ||
99 | */ | ||
100 | uint16_t name_index; | ||
101 | |||
102 | /** | ||
103 | * String pool index for the service's binary. | ||
104 | */ | ||
105 | uint16_t binary_index; | ||
106 | |||
107 | /** | ||
108 | * Last process exit status. | ||
109 | */ | ||
110 | int16_t last_exit_status; | ||
111 | |||
112 | /** | ||
113 | * Padding. | ||
114 | */ | ||
115 | uint16_t padding; | ||
116 | |||
117 | /** | ||
118 | * Status from the 'enum GNUNET_ARM_ServiceStatus' | ||
119 | */ | ||
120 | uint32_t status; | ||
121 | |||
122 | /** | ||
123 | * Time when the sevice will be restarted, if applicable | ||
124 | * to the current status. | ||
125 | */ | ||
126 | struct GNUNET_TIME_AbsoluteNBO restart_at; | ||
127 | |||
128 | /** | ||
129 | * Time when the sevice was first started, if applicable. | ||
130 | */ | ||
131 | struct GNUNET_TIME_AbsoluteNBO last_started_at; | ||
132 | }; | ||
133 | |||
96 | /** | 134 | /** |
97 | * Reply from ARM to client for the | 135 | * Reply from ARM to client for the |
98 | * #GNUNET_MESSAGE_TYPE_ARM_LIST request followed by count | 136 | * #GNUNET_MESSAGE_TYPE_ARM_LIST request followed by count |
@@ -107,10 +145,13 @@ struct GNUNET_ARM_ListResultMessage { | |||
107 | struct GNUNET_ARM_Message arm_msg; | 145 | struct GNUNET_ARM_Message arm_msg; |
108 | 146 | ||
109 | /** | 147 | /** |
110 | * Number of '\0' terminated strings that follow | 148 | * Number of 'struct GNUNET_ARM_ServiceInfoMessage' that |
111 | * this message. | 149 | * are at the end of this message. |
112 | */ | 150 | */ |
113 | uint16_t count; | 151 | uint16_t count; |
152 | |||
153 | /* struct GNUNET_ARM_ServiceInfoMessage[count]; */ | ||
154 | /* pool of 0-terminated strings */ | ||
114 | }; | 155 | }; |
115 | 156 | ||
116 | GNUNET_NETWORK_STRUCT_END | 157 | GNUNET_NETWORK_STRUCT_END |