Lines Matching refs:params

193 static int pack_ses_req_request(ses_req_params_t *params, char **buf,
195 static int unpack_ses_req_request(ses_req_params_t *params, const char *buf);
197 static int pack_ses_req_reply(ses_req_params_t *params, char **buf,
199 static int unpack_ses_req_reply(ses_req_params_t *params, const char *buf);
205 static int pack_change_state_request(change_state_params_t *params,
207 static int unpack_change_state_request(change_state_params_t *params,
209 static int pack_change_state_reply(change_state_params_t *params,
211 static int unpack_change_state_reply(change_state_params_t *params,
217 static int pack_private_func_request(private_func_params_t *params,
219 static int unpack_private_func_request(private_func_params_t *params,
221 static int pack_private_func_reply(private_func_params_t *params,
223 static int unpack_private_func_reply(private_func_params_t *params,
229 static int pack_test_request(test_params_t *params, char **buf, int *buf_size);
231 static int unpack_test_request(test_params_t *params, const char *buf);
233 static int pack_test_reply(test_params_t *params, char **buf, int *buf_size);
235 static int unpack_test_reply(test_params_t *params, const char *buf);
241 static int pack_list_ext_request(list_ext_params_t *params, char **buf,
243 static int unpack_list_ext_request(list_ext_params_t *params, const char *buf);
245 static int pack_list_ext_reply(list_ext_params_t *params, char **buf,
247 static int unpack_list_ext_reply(list_ext_params_t *params, const char *buf);
253 static int pack_help_request(help_params_t *params, char **buf, int *buf_size);
255 static int unpack_help_request(help_params_t *params, const char *buf);
261 static int pack_ap_id_cmp_request(ap_id_cmp_params_t *params, char **buf,
263 static int unpack_ap_id_cmp_request(ap_id_cmp_params_t *params,
269 static int pack_abort_cmd_request(abort_cmd_params_t *params, char **buf,
271 static int unpack_abort_cmd_request(abort_cmd_params_t *params,
277 static int pack_confirm_request(confirm_callback_params_t *params, char **buf,
279 static int unpack_confirm_request(confirm_callback_params_t *params,
281 static int pack_confirm_reply(confirm_callback_params_t *params,
283 static int unpack_confirm_reply(confirm_callback_params_t *params,
289 static int pack_message_request(msg_callback_params_t *params, char **buf,
291 static int unpack_message_request(msg_callback_params_t *params,
297 static int pack_rsrc_info_request(rsrc_info_params_t *params, char **buf,
299 static int unpack_rsrc_info_request(rsrc_info_params_t *params,
301 static int pack_rsrc_info_reply(rsrc_info_params_t *params, char **buf,
303 static int unpack_rsrc_info_reply(rsrc_info_params_t *params, const char *buf);
1731 pack_ses_req_request(ses_req_params_t *params, char **buf, int *buf_size)
1738 if ((params == NULL) || (buf == NULL) || (buf_size == NULL)) {
1745 if (params->locale_str != NULL) {
1746 locale_str_len = strlen(params->locale_str) + 1;
1776 if (params->locale_str != NULL) {
1777 (void) memcpy(bufptr, params->locale_str, locale_str_len);
1791 unpack_ses_req_request(ses_req_params_t *params, const char *buf)
1797 if ((params == NULL) || (buf == NULL)) {
1808 if (get_string_from_buf(&(params->locale_str),
1823 pack_ses_req_reply(ses_req_params_t *params, char **buf, int *buf_size)
1828 if ((params == NULL) || (buf == NULL) || (buf_size == NULL)) {
1846 ses_req_reply_data.session_id = params->session_id;
1863 unpack_ses_req_reply(ses_req_params_t *params, const char *buf)
1868 if ((params == NULL) || (buf == NULL)) {
1878 params->session_id = ses_req_reply_datap->session_id;
1890 pack_change_state_request(change_state_params_t *params, char **buf,
1899 if ((params == NULL) || (buf == NULL) || (buf_size == NULL)) {
1909 if (pack_ap_ids(params->num_ap_ids, params->ap_ids, &var_msg_info)) {
1913 if (find_options_sizes(params->options, &var_msg_info)) {
1937 change_state_data.num_ap_ids = params->num_ap_ids;
1942 if (params->confp != NULL) {
1944 (unsigned long)params->confp->confirm;
1946 (unsigned long)params->confp->appdata_ptr;
1951 if (params->msgp != NULL) {
1953 (unsigned long)params->msgp->message_routine;
1955 (unsigned long)params->msgp->appdata_ptr;
1961 change_state_data.flags = params->flags;
1962 change_state_data.timeval = params->timeval;
1963 change_state_data.state_change_cmd = params->state_change;
1964 if (params->errstring != NULL) {
1969 change_state_data.retries = params->retries;
1991 if (params->options != NULL) {
1992 (void) memcpy(bufptr, params->options,
2013 unpack_change_state_request(change_state_params_t *params, const char *buf)
2020 if ((params == NULL) || (buf == NULL)) {
2034 if (get_ap_ids_from_buf((char ***)&(params->ap_ids),
2044 if (get_string_from_buf(&(params->options),
2053 params->state_change = (cfga_cmd_t)change_state_data.state_change_cmd;
2054 params->num_ap_ids = change_state_data.num_ap_ids;
2056 params->confp = (struct cfga_confirm *)
2058 if (params->confp == NULL) {
2062 /* set params->confp->confirm using memcpy */
2063 (void) memcpy((void*)params->confp,
2065 params->confp->appdata_ptr =
2068 params->msgp = (struct cfga_msg *)malloc(sizeof (struct cfga_msg));
2069 if (params->msgp == NULL) {
2073 /* set params->msgp->message_routine using memcpy */
2074 (void) memcpy((void*)params->msgp,
2076 params->msgp->appdata_ptr =
2080 params->errstring = (char **)malloc(sizeof (char *));
2081 if (params->errstring == NULL) {
2084 *(params->errstring) = NULL;
2086 params->errstring = NULL;
2088 params->flags = change_state_data.flags;
2089 params->timeval = change_state_data.timeval;
2090 params->retries = change_state_data.retries;
2102 pack_change_state_reply(change_state_params_t *params, char **buf,
2113 if ((params == NULL) || (buf == NULL) || (buf_size == NULL)) {
2120 if (find_errstring_sizes(params->errstring, &var_msg_info)) {
2152 if ((params->errstring != NULL) && (*(params->errstring) != NULL)) {
2153 (void) memcpy(bufptr, *(params->errstring),
2172 unpack_change_state_reply(change_state_params_t *params, const char *buf)
2177 if ((params == NULL) || (buf == NULL)) {
2189 params->errstring = (char **)malloc(sizeof (char *));
2190 if (params->errstring == NULL) {
2193 if (get_string_from_buf(params->errstring,
2209 pack_private_func_request(private_func_params_t *params, char **buf,
2218 if ((params == NULL) || (buf == NULL) || (buf_size == NULL)) {
2228 if (pack_ap_ids(params->num_ap_ids, params->ap_ids, &var_msg_info)) {
2232 if (find_options_sizes(params->options, &var_msg_info)) {
2236 if (find_function_sizes(params->function, &var_msg_info)) {
2262 private_func_data.num_ap_ids = params->num_ap_ids;
2269 if (params->confp != NULL) {
2271 (unsigned long)params->confp->confirm;
2273 (unsigned long)params->confp->appdata_ptr;
2278 if (params->msgp != NULL) {
2280 (unsigned long)params->msgp->message_routine;
2282 (unsigned long)params->msgp->appdata_ptr;
2288 private_func_data.flags = params->flags;
2290 if (params->errstring != NULL) {
2316 if (params->options != NULL) {
2317 (void) memcpy(bufptr, params->options,
2326 if (params->function != NULL) {
2327 (void) memcpy(bufptr, params->function,
2348 unpack_private_func_request(private_func_params_t *params, const char *buf)
2357 if ((params == NULL) || (buf == NULL)) {
2369 if (get_ap_ids_from_buf((char ***)&(params->ap_ids),
2379 if (get_string_from_buf(&(params->options),
2385 if (get_string_from_buf(&(params->function),
2394 params->num_ap_ids = private_func_data.num_ap_ids;
2396 params->confp = (struct cfga_confirm *)
2398 if (params->confp == NULL) {
2402 /* set params->confp->confirm using memcpy */
2403 (void) memcpy((void*)params->confp,
2405 params->confp->appdata_ptr =
2408 params->msgp = (struct cfga_msg *)malloc(sizeof (struct cfga_msg));
2409 if (params->msgp == NULL) {
2413 /* set params->msgp->message_routine using memcpy */
2414 (void) memcpy((void*)params->msgp,
2416 params->msgp->appdata_ptr =
2420 params->errstring = (char **)malloc(sizeof (char *));
2421 if (params->errstring == NULL) {
2424 *(params->errstring) = NULL;
2426 params->errstring = NULL;
2428 params->flags = private_func_data.flags;
2440 pack_private_func_reply(private_func_params_t *params, char **buf,
2451 if ((params == NULL) || (buf == NULL) || (buf_size == NULL)) {
2458 if (find_errstring_sizes(params->errstring, &var_msg_info)) {
2489 if ((params->errstring != NULL) && (*(params->errstring) != NULL)) {
2490 (void) memcpy(bufptr, *(params->errstring),
2509 unpack_private_func_reply(private_func_params_t *params, const char *buf)
2514 if ((params == NULL) || (buf == NULL)) {
2526 params->errstring = (char **)malloc(sizeof (char *));
2527 if (params->errstring == NULL) {
2530 if (get_string_from_buf(params->errstring,
2546 pack_test_request(test_params_t *params, char **buf, int *buf_size)
2554 if ((params == NULL) || (buf == NULL) || (buf_size == NULL)) {
2564 if (pack_ap_ids(params->num_ap_ids, params->ap_ids, &var_msg_info)) {
2568 if (find_options_sizes(params->options, &var_msg_info)) {
2592 test_data.num_ap_ids = params->num_ap_ids;
2597 if (params->msgp != NULL) {
2599 (unsigned long)params->msgp->message_routine;
2601 (unsigned long)params->msgp->appdata_ptr;
2607 test_data.flags = params->flags;
2609 if (params->errstring != NULL) {
2635 if (params->options != NULL) {
2636 (void) memcpy(bufptr, params->options,
2657 unpack_test_request(test_params_t *params, const char *buf)
2664 if ((params == NULL) || (buf == NULL)) {
2678 if (get_ap_ids_from_buf((char ***)&(params->ap_ids),
2688 if (get_string_from_buf(&(params->options),
2697 params->num_ap_ids = test_data.num_ap_ids;
2699 params->msgp = (struct cfga_msg *)malloc(sizeof (struct cfga_msg));
2700 if (params->msgp == NULL) {
2704 /* set params->msgp->message_routine using memcpy */
2705 (void) memcpy((void*)params->msgp,
2707 params->msgp->appdata_ptr =
2711 params->errstring = (char **)malloc(sizeof (char *));
2712 if (params->errstring == NULL) {
2715 *(params->errstring) = NULL;
2717 params->errstring = NULL;
2719 params->flags = test_data.flags;
2731 pack_test_reply(test_params_t *params, char **buf, int *buf_size)
2739 if ((params == NULL) || (buf == NULL) || (buf_size == NULL)) {
2748 if (find_errstring_sizes(params->errstring, &var_msg_info)) {
2778 if ((params->errstring != NULL) && (*(params->errstring) != NULL)) {
2779 (void) memcpy(bufptr, *(params->errstring),
2798 unpack_test_reply(test_params_t *params, const char *buf)
2804 if ((params == NULL) || (buf == NULL)) {
2815 params->errstring = (char **)malloc(sizeof (char *));
2816 if (params->errstring == NULL) {
2819 if (get_string_from_buf(params->errstring,
2835 pack_list_ext_request(list_ext_params_t *params, char **buf, int *buf_size)
2843 if ((params == NULL) || (buf == NULL) || (buf_size == NULL)) {
2853 if (pack_ap_ids(params->num_ap_ids, params->ap_ids, &var_msg_info)) {
2857 if (find_options_sizes(params->options, &var_msg_info)) {
2861 if (find_listopts_sizes(params->listopts, &var_msg_info)) {
2888 list_ext_data.num_ap_ids = params->num_ap_ids;
2894 if (params->errstring != NULL) {
2899 if ((params->num_ap_ids != 0) || (params->ap_ids != NULL)) {
2904 list_ext_data.flags = params->flags;
2905 list_ext_data.permissions = params->permissions;
2927 if (params->options != NULL) {
2928 (void) memcpy(bufptr, params->options,
2937 if (params->listopts != NULL) {
2938 (void) memcpy(bufptr, params->listopts,
2959 unpack_list_ext_request(list_ext_params_t *params, const char *buf)
2966 if ((params == NULL) || (buf == NULL)) {
2980 if (get_ap_ids_from_buf(&(params->ap_ids), list_ext_data.num_ap_ids,
2990 if (get_string_from_buf(&(params->options),
2999 if (get_string_from_buf(&(params->listopts),
3008 params->num_ap_ids = list_ext_data.num_ap_ids;
3010 params->ap_id_list = (rdr_list_t **)malloc(sizeof (rdr_list_t *));
3011 if (params->ap_id_list == NULL) {
3014 *(params->ap_id_list) = NULL;
3016 params->nlist = (int *)malloc(sizeof (int));
3017 if (params->nlist == NULL) {
3021 params->errstring = (char **)malloc(sizeof (char *));
3022 if (params->errstring == NULL) {
3025 *(params->errstring) = NULL;
3027 params->errstring = NULL;
3029 params->flags = list_ext_data.flags;
3030 params->permissions = list_ext_data.permissions;
3042 pack_list_ext_reply(list_ext_params_t *params, char **buf, int *buf_size)
3053 if ((params == NULL) || (buf == NULL) || (buf_size == NULL)) {
3060 if (find_errstring_sizes(params->errstring, &var_msg_info)) {
3064 if (params->nlist == NULL) {
3067 list_data_size = *(params->nlist) * sizeof (rdr_list_t);
3087 list_ext_data.num_ap_ids = (params->nlist) ? *(params->nlist) : 0;
3099 if ((params->ap_id_list != NULL) && (*(params->ap_id_list) != NULL)) {
3100 (void) memcpy(bufptr, *(params->ap_id_list), list_data_size);
3113 if ((params->errstring != NULL) && (*(params->errstring) != NULL)) {
3114 (void) memcpy(bufptr, *(params->errstring),
3133 unpack_list_ext_reply(list_ext_params_t *params, const char *buf)
3140 if ((params == NULL) || (buf == NULL)) {
3152 params->nlist = (int *)malloc(sizeof (int));
3153 if (params->nlist == NULL) {
3156 *(params->nlist) = list_ext_data.num_ap_ids;
3157 params->ap_id_list = (rdr_list_t **)
3159 if (params->ap_id_list == NULL) {
3162 *(params->ap_id_list) = (rdr_list_t *)
3164 if (*(params->ap_id_list) == NULL) {
3168 (void) memcpy(*(params->ap_id_list), bufptr, list_data_size);
3175 params->errstring = (char **)malloc(sizeof (char *));
3176 if (params->errstring == NULL) {
3179 if (get_string_from_buf(params->errstring,
3195 pack_help_request(help_params_t *params, char **buf, int *buf_size)
3205 if ((params == NULL) || (buf == NULL) || (buf_size == NULL)) {
3213 if (pack_ap_ids(params->num_ap_ids, params->ap_ids, &var_msg_info)) {
3217 if (find_options_sizes(params->options, &var_msg_info)) {
3241 help_data.num_ap_ids = params->num_ap_ids;
3246 if (params->msgp != NULL) {
3248 (unsigned long)params->msgp->message_routine;
3250 (unsigned long)params->msgp->appdata_ptr;
3256 help_data.flags = params->flags;
3278 if (params->options != NULL) {
3279 (void) memcpy(bufptr, params->options,
3300 unpack_help_request(help_params_t *params, const char *buf)
3307 if ((params == NULL) || (buf == NULL)) {
3321 if (get_ap_ids_from_buf((char ***)&(params->ap_ids),
3331 if (get_string_from_buf(&(params->options),
3340 params->num_ap_ids = help_data.num_ap_ids;
3342 params->msgp = (struct cfga_msg *)malloc(sizeof (struct cfga_msg));
3343 if (params->msgp == NULL) {
3347 /* set params->msgp->message_routine using memcpy */
3348 (void) memcpy((void*)params->msgp, &(help_data.msg_callback_id),
3351 params->msgp->appdata_ptr = (void*)help_data.msg_appdata_ptr;
3352 params->flags = help_data.flags;
3364 pack_ap_id_cmp_request(ap_id_cmp_params_t *params, char **buf, int *buf_size)
3375 if ((params == NULL) || (buf == NULL) || (buf_size == NULL)) {
3383 if (params->ap_log_id1 != NULL) {
3384 ap_id1_strlen = strlen(params->ap_log_id1) + 1;
3392 if (params->ap_log_id2 != NULL) {
3393 ap_id2_strlen = strlen(params->ap_log_id2) + 1;
3431 if (params->ap_log_id1 != NULL) {
3432 (void) memcpy(bufptr, params->ap_log_id1, ap_id1_strlen);
3440 if (params->ap_log_id2 != NULL) {
3441 (void) memcpy(bufptr, params->ap_log_id2, ap_id2_strlen);
3459 unpack_ap_id_cmp_request(ap_id_cmp_params_t *params, const char *buf)
3465 if ((params == NULL) || (buf == NULL)) {
3476 if (get_string_from_buf(&(params->ap_log_id1),
3482 if (get_string_from_buf(&(params->ap_log_id2),
3498 pack_abort_cmd_request(abort_cmd_params_t *params, char **buf, int *buf_size)
3503 if ((params == NULL) || (buf == NULL) || (buf_size == NULL)) {
3521 abort_cmd_data.session_id = params->session_id;
3538 unpack_abort_cmd_request(abort_cmd_params_t *params, const char *buf)
3543 if ((params == NULL) || (buf == NULL)) {
3554 params->session_id = abort_cmd_datap->session_id;
3566 pack_confirm_request(confirm_callback_params_t *params, char **buf,
3576 if ((params == NULL) || (buf == NULL) || (buf_size == NULL)) {
3584 if (params->message != NULL) {
3585 message_strlen = strlen(params->message) + 1;
3610 if (params->confp != NULL) {
3612 (unsigned long)params->confp->confirm;
3614 (unsigned long)params->confp->appdata_ptr;
3629 if (params->message != NULL) {
3630 (void) memcpy(bufptr, params->message, message_strlen);
3648 unpack_confirm_request(confirm_callback_params_t *params, const char *buf)
3654 if ((params == NULL) || (buf == NULL)) {
3666 if (get_string_from_buf(&(params->message),
3675 params->confp = (struct cfga_confirm *)
3677 if (params->confp == NULL) {
3681 /* set params->confp->confirm using memcpy */
3682 (void) memcpy((void*)params->confp,
3686 params->confp->appdata_ptr =
3699 pack_confirm_reply(confirm_callback_params_t *params, char **buf, int *buf_size)
3705 if ((params == NULL) || (buf == NULL) || (buf_size == NULL)) {
3722 if (params->confp != NULL) {
3724 (unsigned long)params->confp->confirm;
3726 (unsigned long)params->confp->appdata_ptr;
3731 confirm_callback_data.response = params->response;
3751 unpack_confirm_reply(confirm_callback_params_t *params, const char *buf)
3756 if ((params == NULL) || (buf == NULL)) {
3768 params->confp = (struct cfga_confirm *)
3770 if (params->confp == NULL) {
3774 /* set params->confp->confirm using memcpy */
3775 (void) memcpy((void*)params->confp,
3779 params->confp->appdata_ptr =
3781 params->response = confirm_callback_data.response;
3793 pack_message_request(msg_callback_params_t *params, char **buf, int *buf_size)
3801 if ((params == NULL) || (buf == NULL) || (buf_size == NULL)) {
3809 if (params->message != NULL) {
3810 message_strlen = strlen(params->message) + 1;
3835 if (params->msgp != NULL) {
3837 (unsigned long)params->msgp->message_routine;
3839 (unsigned long)params->msgp->appdata_ptr;
3854 if (params->message != NULL) {
3855 (void) memcpy(bufptr, params->message, message_strlen);
3873 unpack_message_request(msg_callback_params_t *params, const char *buf)
3878 if ((params == NULL) || (buf == NULL)) {
3889 if (get_string_from_buf(&(params->message),
3898 params->msgp = (struct cfga_msg *)malloc(sizeof (struct cfga_msg));
3899 if (params->msgp == NULL) {
3903 /* set params->msgp->message_routine using memcpy */
3904 (void) memcpy((void*)params->msgp, &(msg_callback_data.msg_callback_id),
3907 params->msgp->appdata_ptr = (void*)msg_callback_data.appdata_ptr;
3918 pack_rsrc_info_request(rsrc_info_params_t *params, char **buf, int *buf_size)
3925 if ((params == NULL) || (buf == NULL) || (buf_size == NULL)) {
3935 if (pack_ap_ids(params->num_ap_ids, params->ap_ids, &var_msg_info)) {
3956 rsrc_info_data.num_ap_ids = params->num_ap_ids;
3958 rsrc_info_data.flags = params->flags;
3992 unpack_rsrc_info_request(rsrc_info_params_t *params, const char *buf)
3999 if ((params == NULL) || (buf == NULL)) {
4013 if (get_ap_ids_from_buf(&(params->ap_ids), rsrc_info_data.num_ap_ids,
4023 params->num_ap_ids = rsrc_info_data.num_ap_ids;
4024 params->flags = rsrc_info_data.flags;
4036 pack_rsrc_info_reply(rsrc_info_params_t *params, char **buf, int *buf_size,
4046 if ((params == NULL) || (buf == NULL) || (buf_size == NULL)) {
4053 pack_status = ri_pack(params->hdl, &rsrc_info_bufp, &rsrc_info_size,
4100 unpack_rsrc_info_reply(rsrc_info_params_t *params, const char *buf)
4107 if ((params == NULL) || (buf == NULL)) {
4119 &params->hdl);