1
0
forked from jchomaz/Vulture

Tracking de l'application VNode (moteur du jeu, services, broker.. etc

This commit is contained in:
2025-05-11 18:06:20 +02:00
parent 89e9db9b62
commit 4b4060bc8b
187 changed files with 29906 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
#ifndef PRODUCER_H
#define PRODUCER_H
#include<stddef.h>
typedef struct producer_s producer_t;
struct producer_s {
/*
* return: 0: success, -1: failed
*/
int (*match)(void *data);
/*
* return: 0: continue, -1: stop and return
*/
int (*target)(void *data);
};
int producer_init(producer_t **p,
int (*match)(void *data),
int (*target)(void *data));
int producer_release(producer_t *p);
#endif