summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoryangwei <[email protected]>2024-09-14 17:41:23 +0800
committeryangwei <[email protected]>2024-09-14 17:41:23 +0800
commit19aeb194f3d1779fb174069256d3fcb44c70f22c (patch)
tree46a03d04442a9f9579769e2fe180371d11fe1d77 /include
parent340c8a1054a64779141341036ad3d51bd0b25e4f (diff)
🧪 test(exdata): add test case
Diffstat (limited to 'include')
-rw-r--r--include/stellar/exdata.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/stellar/exdata.h b/include/stellar/exdata.h
index 8233c8b..84f8029 100644
--- a/include/stellar/exdata.h
+++ b/include/stellar/exdata.h
@@ -10,7 +10,7 @@ typedef void exdata_free(int idx, void *ex_ptr, void *arg);
struct exdata_schema;
struct exdata_schema *exdata_schema_new();
-void exdata_schema_free(struct exdata_schema *s);
+void exdata_schema_free(struct exdata_schema *schemas);
int exdata_schema_new_index(struct exdata_schema *schema, const char *name, exdata_free *free_func,void *free_arg);
@@ -18,12 +18,12 @@ int exdata_schema_get_idx_by_name(struct exdata_schema *schema, const char *name
struct exdata_runtime;
-struct exdata_runtime *exdata_runtime_new(struct exdata_schema *h);
-void exdata_runtime_free(struct exdata_runtime *h);
-void exdata_runtime_reset(struct exdata_runtime *h);//call free_func, and set ex_ptr to NULL
+struct exdata_runtime *exdata_runtime_new(struct exdata_schema *schemas);
+void exdata_runtime_free(struct exdata_runtime *rt);
+void exdata_runtime_reset(struct exdata_runtime *rt);//call free_func, and set ex_ptr to NULL
-int exdata_set(struct exdata_runtime *h, int idx, void *ex_ptr);
-void *exdata_get(struct exdata_runtime *h, int idx);
+int exdata_set(struct exdata_runtime *rt, int idx, void *ex_ptr);
+void *exdata_get(struct exdata_runtime *rt, int idx);
#ifdef __cplusplus