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

Go to the source code of this file.

Data Structures

struct  s0
 
struct  s1
 
struct  call_log
 

Enumerations

enum  { HIPCUD_s0, HIPCUD_s1 }
 

Functions

static enum HIPC_errno hndlr0 (struct HIPC_client *cl_p, const hipc_msg msg, void *cimg, void *arg)
 
static enum HIPC_errno hndlr1 (struct HIPC_client *cl_p, const hipc_msg msg, void *cimg, void *arg)
 
static void test_handler (void)
 
int main (int argc, char *argv[])
 

Variables

const struct HIPC_cl_indp_mbr HIPCUD_mock_CCFG_indp_member_s0 []
 
const struct HIPC_cl_indp_mbr HIPCUD_mock_CCFG_indp_member_s1 []
 
const struct HIPC_cl_indp_stru HIPCUD_mock_CCFG_indp_struct []
 
const struct HIPC_cl_indp HIPCUD_mock_CCFG_indp
 
unsigned char HIPCUD_mock_CCFG_cmdp_s0_offset []
 
unsigned char HIPCUD_mock_CCFG_cmdp_s0_size []
 
unsigned char HIPCUD_mock_CCFG_cmdp_s1_offset []
 
unsigned char HIPCUD_mock_CCFG_cmdp_s1_size []
 
struct HIPC_cl_dp_stru HIPCUD_mock_CCFG_cmdp_struct []
 
unsigned char HIPCUD_mock_CCFG_structsizes []
 
struct HIPC_cl_dp HIPCUD_mock_CCFG_cmdp
 
const struct HIPC_client HIPCUD_mock_CCFG
 
static struct call_log cllg
 

Enumeration Type Documentation

anonymous enum
Enumerator
HIPCUD_s0 
HIPCUD_s1 

Definition at line 15 of file test_client_hndlr.c.

Function Documentation

static enum HIPC_errno hndlr0 ( struct HIPC_client cl_p,
const hipc_msg  msg,
void *  cimg,
void *  arg 
)
static

Definition at line 85 of file test_client_hndlr.c.

References call_log::arg, call_log::cimg, cllg, call_log::hndlr_p, and call_log::msg_p.

Referenced by test_handler().

Here is the caller graph for this function:

static enum HIPC_errno hndlr1 ( struct HIPC_client cl_p,
const hipc_msg  msg,
void *  cimg,
void *  arg 
)
static

Definition at line 96 of file test_client_hndlr.c.

References call_log::arg, call_log::cimg, cllg, call_log::hndlr_p, and call_log::msg_p.

Referenced by test_handler().

Here is the caller graph for this function:

static void test_handler ( void  )
static

Definition at line 107 of file test_client_hndlr.c.

References call_log::arg, call_log::cimg, cllg, HIPC_SUCCESS, hipcClientCallHandler(), hipcClientInit(), hipcClientSetCimg(), hipcClientSetHandler(), HIPCUD_s0, HIPCUD_s1, hndlr0(), hndlr1(), call_log::hndlr_p, and call_log::msg_p.

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 170 of file test_client_hndlr.c.

References test_handler().

Here is the call graph for this function:

Variable Documentation

const struct HIPC_cl_indp_mbr HIPCUD_mock_CCFG_indp_member_s0[]
Initial value:
= {
{HIPC_MBR_SIMPLE, "m0"},
}

Definition at line 21 of file test_client_hndlr.c.

const struct HIPC_cl_indp_mbr HIPCUD_mock_CCFG_indp_member_s1[]
Initial value:
= {
{HIPC_MBR_SIMPLE, "m0"},
}

Definition at line 26 of file test_client_hndlr.c.

const struct HIPC_cl_indp_stru HIPCUD_mock_CCFG_indp_struct[]
Initial value:
= {
}
const struct HIPC_cl_indp_mbr HIPCUD_mock_CCFG_indp_member_s0[]
const struct HIPC_cl_indp_mbr HIPCUD_mock_CCFG_indp_member_s1[]

Definition at line 31 of file test_client_hndlr.c.

const struct HIPC_cl_indp HIPCUD_mock_CCFG_indp
Initial value:
= {
NULL, 0, 5, 2,
}
const struct HIPC_cl_indp_stru HIPCUD_mock_CCFG_indp_struct[]

Definition at line 36 of file test_client_hndlr.c.

unsigned char HIPCUD_mock_CCFG_cmdp_s0_offset[]
Initial value:
= {
offsetof(struct s0, m0),
}

Definition at line 41 of file test_client_hndlr.c.

unsigned char HIPCUD_mock_CCFG_cmdp_s0_size[]
Initial value:
= {
sizeof(char),
}

Definition at line 44 of file test_client_hndlr.c.

unsigned char HIPCUD_mock_CCFG_cmdp_s1_offset[]
Initial value:
= {
offsetof(struct s1, m0),
}

Definition at line 48 of file test_client_hndlr.c.

unsigned char HIPCUD_mock_CCFG_cmdp_s1_size[]
Initial value:
= {
sizeof(int),
}

Definition at line 51 of file test_client_hndlr.c.

struct HIPC_cl_dp_stru HIPCUD_mock_CCFG_cmdp_struct[]
Initial value:
= {
}
unsigned char HIPCUD_mock_CCFG_cmdp_s1_offset[]
unsigned char HIPCUD_mock_CCFG_cmdp_s0_offset[]
unsigned char HIPCUD_mock_CCFG_cmdp_s0_size[]
unsigned char HIPCUD_mock_CCFG_cmdp_s1_size[]

Definition at line 55 of file test_client_hndlr.c.

unsigned char HIPCUD_mock_CCFG_structsizes[]
Initial value:
= {
sizeof(struct s0),
sizeof(struct s1),
}

Definition at line 60 of file test_client_hndlr.c.

struct HIPC_cl_dp HIPCUD_mock_CCFG_cmdp
Initial value:
=
unsigned char HIPCUD_mock_CCFG_structsizes[]
struct HIPC_cl_dp_stru HIPCUD_mock_CCFG_cmdp_struct[]

Definition at line 64 of file test_client_hndlr.c.

const struct HIPC_client HIPCUD_mock_CCFG
Initial value:
= {
0,
NULL,
NULL
}
struct HIPC_cl_dp HIPCUD_mock_CCFG_cmdp
const struct HIPC_cl_indp HIPCUD_mock_CCFG_indp

Definition at line 67 of file test_client_hndlr.c.

struct call_log cllg
static

Referenced by hndlr0(), hndlr1(), and test_handler().