mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
clear pikaobj.h old api, add ctypesUtils_mem api
This commit is contained in:
parent
7d730006e4
commit
13afcd2ef6
@ -5,11 +5,14 @@ void ctypesUtils_setInt(PikaObj* self, int val);
|
||||
void ctypesUtils_setStr(PikaObj* self, char* val);
|
||||
void ctypesUtils_setFloat(PikaObj* self, float val);
|
||||
void ctypesUtils_setPtr(PikaObj* self, void* ptr);
|
||||
void ctypesUtils_setMem(PikaObj* self, void* src, size_t size);
|
||||
|
||||
int ctypesUtils_getInt(PikaObj* self);
|
||||
char* ctypesUtils_getStr(PikaObj* self);
|
||||
float ctypesUtils_getFloat(PikaObj* self);
|
||||
void *ctypesUtils_getPtr(PikaObj* self);
|
||||
void* ctypesUtils_getPtr(PikaObj* self);
|
||||
|
||||
size_t ctypesUtils_getMemSize(PikaObj* self);
|
||||
void* ctypesUtils_getMem(PikaObj* self);
|
||||
|
||||
#endif
|
@ -5,11 +5,14 @@ void ctypesUtils_setInt(PikaObj* self, int val);
|
||||
void ctypesUtils_setStr(PikaObj* self, char* val);
|
||||
void ctypesUtils_setFloat(PikaObj* self, float val);
|
||||
void ctypesUtils_setPtr(PikaObj* self, void* ptr);
|
||||
void ctypesUtils_setMem(PikaObj* self, void* src, size_t size);
|
||||
|
||||
int ctypesUtils_getInt(PikaObj* self);
|
||||
char* ctypesUtils_getStr(PikaObj* self);
|
||||
float ctypesUtils_getFloat(PikaObj* self);
|
||||
void *ctypesUtils_getPtr(PikaObj* self);
|
||||
void* ctypesUtils_getPtr(PikaObj* self);
|
||||
|
||||
size_t ctypesUtils_getMemSize(PikaObj* self);
|
||||
void* ctypesUtils_getMem(PikaObj* self);
|
||||
|
||||
#endif
|
@ -115,14 +115,6 @@ char* obj_getStr(PikaObj* self, char* argPath);
|
||||
int64_t obj_getInt(PikaObj* self, char* argPath);
|
||||
Arg* obj_getArg(PikaObj* self, char* argPath);
|
||||
|
||||
// arg general operations
|
||||
int32_t obj_bind(PikaObj* self, char* type, char* name, void* pointer);
|
||||
int32_t obj_set(PikaObj* self, char* name, char* valStr);
|
||||
|
||||
int32_t obj_bindInt(PikaObj* self, char* name, int32_t* valPtr);
|
||||
int32_t obj_bindFloat(PikaObj* self, char* name, float* valPtr);
|
||||
int32_t obj_bindString(PikaObj* self, char* name, char** valPtr);
|
||||
|
||||
char* obj_print(PikaObj* self, char* name);
|
||||
|
||||
// args operations
|
||||
|
Loading…
x
Reference in New Issue
Block a user