2016-05-25 18:37:40 +03:00
|
|
|
#ifndef __BASECMD_H
|
|
|
|
#define __BASECMD_H
|
|
|
|
|
2019-08-06 18:44:29 +03:00
|
|
|
#include <stddef.h> // size_t
|
2016-05-25 18:37:40 +03:00
|
|
|
#include <stdint.h> // uint8_t
|
|
|
|
|
2019-08-06 18:44:29 +03:00
|
|
|
void *alloc_chunk(size_t size);
|
2017-03-08 19:29:27 +03:00
|
|
|
void move_free(void *m);
|
|
|
|
void *move_alloc(void);
|
|
|
|
void move_request_size(int size);
|
2017-03-09 21:49:03 +03: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);
|
2017-08-07 19:33:08 +03:00
|
|
|
void stats_update(uint32_t start, uint32_t cur);
|
2017-09-04 05:02:48 +03:00
|
|
|
void config_reset(uint32_t *args);
|
2016-05-25 18:37:40 +03:00
|
|
|
|
|
|
|
#define foreach_oid(pos,data,oidtype) \
|
2017-03-09 21:49:03 +03:00
|
|
|
for (pos=-1; (data=oid_next(&pos, oidtype)); )
|
2016-05-25 18:37:40 +03:00
|
|
|
|
|
|
|
#endif // basecmd.h
|