MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / init_store_avps

Function init_store_avps

modules/sqlops/sqlops_impl.c:57–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55static str empty={"",0};
56
57void init_store_avps(str **db_columns)
58{
59 /* unique user id */
60 store_keys[0] = db_columns[0]; /*uuid*/
61 store_vals[0].type = DB_STR;
62 store_vals[0].nul = 0;
63 /* attribute */
64 store_keys[1] = db_columns[1]; /*attribute*/
65 store_vals[1].type = DB_STR;
66 store_vals[1].nul = 0;
67 /* value */
68 store_keys[2] = db_columns[2]; /*value*/
69 store_vals[2].type = DB_STR;
70 store_vals[2].nul = 0;
71 /* type */
72 store_keys[3] = db_columns[3]; /*type*/
73 store_vals[3].type = DB_INT;
74 store_vals[3].nul = 0;
75 /* user name */
76 store_keys[4] = db_columns[4]; /*username*/
77 store_vals[4].type = DB_STR;
78 store_vals[4].nul = 0;
79 /* domain */
80 store_keys[5] = db_columns[5]; /*domain*/
81 store_vals[5].type = DB_STR;
82 store_vals[5].nul = 0;
83}
84
85#define SQLOPS_ATTR_LEN 64
86static char sqlops_attr_buf[SQLOPS_ATTR_LEN];

Callers 1

sqlops_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected