dazibao/src/parser.h
n07070 f294be3ba2 Fixed sending messages
Fixed return types
Fixed signatures
Fixed *some* warnings
2020-04-14 19:32:15 +02:00

20 lines
324 B
C

#include <stdio.h>
#include <string.h>
#ifndef PARSER_H
#define PARSER_H
typedef enum cmd_type {
NEIGHBOUR_REQ, NETWORK_STATE_REQ, NODE_STATE_REQ, POST, ERROR
} cmd_type;
typedef struct cmd_token {
cmd_type type;
char arg[193];
} cmd_token;
// retourne le type de commande à exécuter
cmd_token parse_cmd();
#endif