HIPC  0.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions | Variables
test_client_strope.c File Reference
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <hipc/client.h>
Include dependency graph for test_client_strope.c:

Go to the source code of this file.

Functions

static void test_strcspn (void)
 
static void test_arysize (void)
 
static void test_hipcClientGetStrutpl (void)
 
static void test_hipcClientGetStrutpl_tooLargeName (void)
 
int main (int argc, char *argv[])
 

Variables

const struct HIPC_cl_indp_mbr b_test_ctl []
 
const size_t b_ary0_elm_max_idxs [] = { 2, 3, 4 }
 
const size_t b_ary1_elm_max_idxs [] = { 5 }
 
const struct HIPC_cl_indp_mbr b_test_sa []
 
const struct HIPC_cl_indp_mbr HIPCUD_pidctrl_indp_member_pid_ctrl []
 
const size_t b_inv_elm_max_idxs [] = { 2 }
 
const struct HIPC_cl_indp_mbr b_inv []
 
const struct HIPC_cl_indp_stru b_indp_s []
 
const struct HIPC_cl_indp b_indp = { NULL, 0, 5, 4, b_indp_s }
 
unsigned char b_test_ctl_offset [] = { 0, 4 }
 
unsigned char b_test_ctl_size [] = { 1, 4 }
 
unsigned char b_test_sa_offset [] = { 0, 24, 64 }
 
unsigned char b_test_sa_size [] = { 24, 40, 8 }
 
unsigned char HIPCUD_pidctrl_cmdp_pid_ctrl_offset []
 
unsigned char HIPCUD_pidctrl_cmdp_pid_ctrl_size []
 
unsigned char b_inv_offset [] = { 0, 4, 8 }
 
unsigned char b_inv_size [] = { 4, 4, 255 }
 
struct HIPC_cl_dp_stru b_cmdp_s []
 
unsigned char HIPCUD_pidctrl_smdp_pid_ctrl_offset []
 
unsigned char HIPCUD_pidctrl_smdp_pid_ctrl_size []
 
struct HIPC_cl_dp_stru b_smdp_s []
 
unsigned char b_cmdp_strctsizes [] = { 8, 72, 8, 12 }
 
unsigned char b_smdp_strctsizes [] = { 8, 72, 12, 12 }
 
struct HIPC_cl_dp b_cmdp
 
struct HIPC_cl_dp b_smdp
 
struct HIPC_client b_ri
 

Function Documentation

static void test_strcspn ( void  )
static

Definition at line 10 of file test_client_strope.c.

Referenced by main().

Here is the caller graph for this function:

static void test_arysize ( void  )
static

Definition at line 28 of file test_client_strope.c.

Referenced by main().

Here is the caller graph for this function:

static void test_hipcClientGetStrutpl ( void  )
static

Definition at line 136 of file test_client_strope.c.

References HIPC_client::err_detail_str, HIPC_ERR_INTERNAL_ERROR, HIPC_ERR_INV_ID_STR, HIPC_ERR_PROTOCOL_VIOLATION, HIPC_SUCCESS, and hipcClientGetStrutpl().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

static void test_hipcClientGetStrutpl_tooLargeName ( void  )
static

Definition at line 310 of file test_client_strope.c.

References HIPC_ERR_INV_ID_STR, HIPC_IMG_ALLOCSIZE, hipcClientGetErrDtlStr(), and hipcClientGetStrutpl().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int main ( int  argc,
char *  argv[] 
)

Definition at line 352 of file test_client_strope.c.

References test_arysize(), test_hipcClientGetStrutpl(), test_hipcClientGetStrutpl_tooLargeName(), and test_strcspn().

Here is the call graph for this function:

Variable Documentation

const struct HIPC_cl_indp_mbr b_test_ctl[]
Initial value:
= {
{HIPC_MBR_SIMPLE, "enable"},
{HIPC_MBR_SIMPLE, "diff"},
}

Definition at line 47 of file test_client_strope.c.

const size_t b_ary0_elm_max_idxs[] = { 2, 3, 4 }

Definition at line 52 of file test_client_strope.c.

const size_t b_ary1_elm_max_idxs[] = { 5 }

Definition at line 53 of file test_client_strope.c.

const struct HIPC_cl_indp_mbr b_test_sa[]
Initial value:
= {
0},
{HIPC_MBR_STRUCT, "ctl", 0},
}
const size_t b_ary1_elm_max_idxs[]
const size_t b_ary0_elm_max_idxs[]

Definition at line 54 of file test_client_strope.c.

const struct HIPC_cl_indp_mbr HIPCUD_pidctrl_indp_member_pid_ctrl[]
Initial value:
= {
{HIPC_MBR_SIMPLE, "dummy"},
{HIPC_MBR_SIMPLE, "target"},
{HIPC_MBR_SIMPLE, "enable"},
}

Definition at line 61 of file test_client_strope.c.

const size_t b_inv_elm_max_idxs[] = { 2 }

Definition at line 67 of file test_client_strope.c.

const struct HIPC_cl_indp_mbr b_inv[]
Initial value:
= {
{HIPC_MBR_ARRAY, "dim", 0, 0, NULL, HIPC_MBR_SIMPLE},
{HIPC_MBR_ARRAY, "snode", 0, 1, b_inv_elm_max_idxs, 128},
{HIPC_MBR_SIMPLE, "offset"},
}
const size_t b_inv_elm_max_idxs[]

Definition at line 68 of file test_client_strope.c.

const struct HIPC_cl_indp_stru b_indp_s[]
Initial value:
= {
{2, "test_ctl", b_test_ctl},
{3, "sa", b_test_sa},
{3, "inv", b_inv},
}
const struct HIPC_cl_indp_mbr HIPCUD_pidctrl_indp_member_pid_ctrl[]
const struct HIPC_cl_indp_mbr b_test_sa[]
const struct HIPC_cl_indp_mbr b_inv[]
const struct HIPC_cl_indp_mbr b_test_ctl[]

Definition at line 74 of file test_client_strope.c.

const struct HIPC_cl_indp b_indp = { NULL, 0, 5, 4, b_indp_s }

Definition at line 80 of file test_client_strope.c.

unsigned char b_test_ctl_offset[] = { 0, 4 }

Definition at line 82 of file test_client_strope.c.

unsigned char b_test_ctl_size[] = { 1, 4 }

Definition at line 83 of file test_client_strope.c.

unsigned char b_test_sa_offset[] = { 0, 24, 64 }

Definition at line 84 of file test_client_strope.c.

unsigned char b_test_sa_size[] = { 24, 40, 8 }

Definition at line 85 of file test_client_strope.c.

unsigned char HIPCUD_pidctrl_cmdp_pid_ctrl_offset[]
Initial value:
= {
0, 6, 7,
}

Definition at line 86 of file test_client_strope.c.

unsigned char HIPCUD_pidctrl_cmdp_pid_ctrl_size[]
Initial value:
= {
6, 1, 1,
}

Definition at line 89 of file test_client_strope.c.

unsigned char b_inv_offset[] = { 0, 4, 8 }

Definition at line 92 of file test_client_strope.c.

unsigned char b_inv_size[] = { 4, 4, 255 }

Definition at line 93 of file test_client_strope.c.

struct HIPC_cl_dp_stru b_cmdp_s[]
Initial value:
= {
}
unsigned char HIPCUD_pidctrl_cmdp_pid_ctrl_size[]
unsigned char b_test_sa_offset[]
unsigned char b_inv_size[]
unsigned char HIPCUD_pidctrl_cmdp_pid_ctrl_offset[]
unsigned char b_test_ctl_size[]
unsigned char b_test_sa_size[]
unsigned char b_test_ctl_offset[]
unsigned char b_inv_offset[]

Definition at line 95 of file test_client_strope.c.

unsigned char HIPCUD_pidctrl_smdp_pid_ctrl_offset[]
Initial value:
= {
0, 8, 9,
}

Definition at line 103 of file test_client_strope.c.

unsigned char HIPCUD_pidctrl_smdp_pid_ctrl_size[]
Initial value:
= {
8, 1, 1,
}

Definition at line 107 of file test_client_strope.c.

struct HIPC_cl_dp_stru b_smdp_s[]
Initial value:
= {
}
unsigned char HIPCUD_pidctrl_smdp_pid_ctrl_offset[]
unsigned char b_test_sa_offset[]
unsigned char HIPCUD_pidctrl_smdp_pid_ctrl_size[]
unsigned char b_inv_size[]
unsigned char b_test_ctl_size[]
unsigned char b_test_sa_size[]
unsigned char b_test_ctl_offset[]
unsigned char b_inv_offset[]

Definition at line 111 of file test_client_strope.c.

unsigned char b_cmdp_strctsizes[] = { 8, 72, 8, 12 }

Definition at line 119 of file test_client_strope.c.

unsigned char b_smdp_strctsizes[] = { 8, 72, 12, 12 }

Definition at line 120 of file test_client_strope.c.

struct HIPC_cl_dp b_cmdp
Initial value:
=
struct HIPC_cl_dp_stru b_cmdp_s[]
unsigned char b_cmdp_strctsizes[]

Definition at line 121 of file test_client_strope.c.

struct HIPC_cl_dp b_smdp
Initial value:
=
unsigned char b_smdp_strctsizes[]
struct HIPC_cl_dp_stru b_smdp_s[]

Definition at line 123 of file test_client_strope.c.

struct HIPC_client b_ri
Initial value:
= {
0,
}
const struct HIPC_cl_indp b_indp
struct HIPC_cl_dp b_cmdp
struct HIPC_cl_dp b_smdp

Definition at line 127 of file test_client_strope.c.