|
@@ -10,12 +10,14 @@
|
|
|
|
|
|
/* --- Include --- */
|
|
/* --- Include --- */
|
|
#include "constante.h"
|
|
#include "constante.h"
|
|
|
|
+#include "server.h"
|
|
|
|
+#include "json.h"
|
|
|
|
|
|
/* --- Structure --- */
|
|
/* --- Structure --- */
|
|
typedef struct al_node al_node;
|
|
typedef struct al_node al_node;
|
|
struct al_node{
|
|
struct al_node{
|
|
char* key; //Clef d'accès
|
|
char* key; //Clef d'accès
|
|
- int(*handler)(char*); //Fonction
|
|
|
|
|
|
+ int(*handler)(Server, JsonParser*); //Fonction
|
|
al_node* prev; //Noeud precedent
|
|
al_node* prev; //Noeud precedent
|
|
al_node* next; //Noeud suivant
|
|
al_node* next; //Noeud suivant
|
|
};
|
|
};
|
|
@@ -40,7 +42,7 @@ void arraylist_ini(arraylist*);
|
|
* @param int(*)(char*) Fonction
|
|
* @param int(*)(char*) Fonction
|
|
* @return al_node* Le noeud ajouté
|
|
* @return al_node* Le noeud ajouté
|
|
*/
|
|
*/
|
|
-al_node* arraylist_add(arraylist*, char*, int(*)(char*));
|
|
|
|
|
|
+al_node* arraylist_add(arraylist*, char*, int(*)(Server, JsonParser*));
|
|
|
|
|
|
/**
|
|
/**
|
|
* Cherche un noeud
|
|
* Cherche un noeud
|