intégration des logiciels tier comme NanoMQ ainsi que les fichiers json de score
This commit is contained in:
23
_software_lib/nanomq-0.22.10/include/nng/exchange/producer.h
Normal file
23
_software_lib/nanomq-0.22.10/include/nng/exchange/producer.h
Normal 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
|
Reference in New Issue
Block a user