clear pikaobj.h old api, add ctypesUtils_mem api

This commit is contained in:
lyon1998 2022-04-17 23:02:13 +08:00
parent 7d730006e4
commit 13afcd2ef6
3 changed files with 8 additions and 10 deletions

View File

@ -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

View File

@ -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

View File

@ -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