Skip to content

Commit

Permalink
Mv, remove unused stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannguyen4 committed Sep 16, 2024
1 parent a0e25fd commit b7cee3d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/include/policy.h
Original file line number Diff line number Diff line change
Expand Up @@ -193,25 +193,6 @@ enum aerospike_cdt_ctx_identifiers {
CDT_CTX_MAP_KEY_CREATE = 0x24
};

struct module_constant_name_to_value {
const char *member_name;
// If false, is int value
bool is_str_value;
union value {
long integer;
const char *string;
} value;
};

typedef struct Aerospike_JobConstants {
char job_str[MAX_CONSTANT_STR_SIZE];
char exposed_job_str[MAX_CONSTANT_STR_SIZE];
} AerospikeJobConstants;
#define AEROSPIKE_CONSTANTS_ARR_SIZE \
(sizeof(aerospike_constants) / sizeof(AerospikeConstants))
#define AEROSPIKE_JOB_CONSTANTS_ARR_SIZE \
(sizeof(aerospike_job_constants) / sizeof(AerospikeJobConstants))

as_status pyobject_to_policy_admin(AerospikeClient *self, as_error *err,
PyObject *py_policy, as_policy_admin *policy,
as_policy_admin **policy_p,
Expand Down
10 changes: 10 additions & 0 deletions src/main/aerospike.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,16 @@ static PyMethodDef Aerospike_Methods[] = {

{NULL}};

struct module_constant_name_to_value {
const char *member_name;
// If false, is int value
bool is_str_value;
union value {
long integer;
const char *string;
} value;
};

static struct module_constant_name_to_value module_constants[] = {
{"OPERATOR_READ", false, .value.integer = AS_OPERATOR_READ},
{"OPERATOR_WRITE", false, .value.integer = AS_OPERATOR_WRITE},
Expand Down

0 comments on commit b7cee3d

Please sign in to comment.