2016-05-25 11:37:40 -04:00
|
|
|
#ifndef __BASECMD_H
|
|
|
|
|
#define __BASECMD_H
|
|
|
|
|
|
|
|
|
|
#include <stdint.h> // uint8_t
|
|
|
|
|
|
2017-03-08 11:29:27 -05:00
|
|
|
void move_free(void *m);
|
|
|
|
|
void *move_alloc(void);
|
|
|
|
|
void move_request_size(int size);
|
2017-03-09 13:49:03 -05:00
|
|
|
void *oid_lookup(uint8_t oid, void *type);
|
|
|
|
|
void *oid_alloc(uint8_t oid, void *type, uint16_t size);
|
|
|
|
|
void *oid_next(uint8_t *i, void *type);
|
2016-05-25 11:37:40 -04:00
|
|
|
|
|
|
|
|
#define foreach_oid(pos,data,oidtype) \
|
2017-03-09 13:49:03 -05:00
|
|
|
for (pos=-1; (data=oid_next(&pos, oidtype)); )
|
2016-05-25 11:37:40 -04:00
|
|
|
|
|
|
|
|
#endif // basecmd.h
|