f294be3ba2
Fixed return types Fixed signatures Fixed *some* warnings
20 lines
324 B
C
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
|