#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <stdint.h>
#include <hipc/client.h>
Go to the source code of this file.
Functions | |
static void | test_hipcClientInit (void) |
static void | msgWithStr (hipc_msg msg, unsigned char type, unsigned char const hipc_errno, char const *const str) |
static void | test_hipcClientFeedSysmsg (void) |
static enum HIPC_errno | setupTestClient (struct HIPC_client *const cl_p) |
static void | test_hipcClientFeedStrumsg (void) |
static void | test_hipcClientFeedUnstrumsgAsError (void) |
static void | test_hipcClientGetNsysmsg (void) |
int | main (int argc, char *argv[]) |
Variables | |
const struct HIPC_cl_indp_mbr | HIPCUD_test_indp_member_log [] |
const struct HIPC_cl_indp_mbr | HIPCUD_test_indp_member_ctl [] |
const struct HIPC_cl_indp_stru | HIPCUD_test_indp_struct [] |
const struct HIPC_cl_indp | HIPCUD_test_indp |
unsigned char | HIPCUD_test_cmdp_log_offset [] |
unsigned char | HIPCUD_test_cmdp_log_size [] |
unsigned char | HIPCUD_test_cmdp_ctl_offset [] |
unsigned char | HIPCUD_test_cmdp_ctl_size [] |
struct HIPC_cl_dp_stru | HIPCUD_test_cmdp_struct [] |
unsigned char | HIPCUD_test_structsizes [] |
struct HIPC_cl_dp | HIPCUD_test_cmdp |
|
static |
Definition at line 59 of file test_client.c.
References HIPC_client::cmdp_p, HIPC_cl_dp::endian, HIPC_ERR_INV_BASE_CLIENT, HIPC_SUCCESS, hipcClientInit(), hipcClientTerminate(), HIPC_client::indp_p, HIPC_cl_indp::n_struct, HIPC_client::smdp_p, and HIPC_cl_dp::struct_size_p.
Referenced by main().
|
static |
Definition at line 91 of file test_client.c.
References HIPC_MSGHDR_BYTE_BDYSZ, HIPC_MSGHDR_BYTE_OFFSET, HIPC_MSGHDR_BYTE_STRUNO, HIPC_MSGHDR_BYTE_TYPE, HIPC_MSGHDR_SIZE, and HIPC_UNSTRU.
Referenced by test_hipcClientFeedUnstrumsgAsError().
|
static |
Definition at line 114 of file test_client.c.
References HIPC_client::cmdp_p, HIPC_ERR_INV_ENDIAN, HIPC_ERR_PROTOCOL_VIOLATION, HIPC_client::hipc_errno, HIPC_MESSAGE_TYPE_PUT, HIPC_MESSAGE_TYPE_SYS, HIPC_MSGHDR_BYTE_BDYSZ, HIPC_MSGHDR_BYTE_OFFSET, HIPC_MSGHDR_BYTE_STRUNO, HIPC_MSGHDR_BYTE_TYPE, HIPC_MSGHDR_SIZE, HIPC_SUCCESS, HIPC_SYSMSG_TYPE_OFFSET, HIPC_SYSMSG_TYPE_OVERVIEW, HIPC_SYSMSG_TYPE_SIZE, hipcClientFeedSysmsg(), hipcClientInit(), hipcClientTerminate(), HIPCUD_test_indp, HIPC_client::indp_p, HIPC_cl_dp_stru::offset_p, HIPC_cl_dp_stru::size_p, HIPC_client::smdp_p, HIPC_cl_dp::struct_p, and HIPC_cl_dp::struct_size_p.
Referenced by main().
|
static |
Definition at line 205 of file test_client.c.
References HIPC_client::cmdp_p, HIPC_SUCCESS, hipcClientInit(), HIPCUD_test_cmdp, HIPCUD_test_indp, HIPC_client::indp_p, and HIPC_client::smdp_p.
Referenced by test_hipcClientFeedStrumsg(), test_hipcClientFeedUnstrumsgAsError(), and test_hipcClientGetNsysmsg().
|
static |
Definition at line 217 of file test_client.c.
References HIPC_ERR_PROTOCOL_VIOLATION, HIPC_client::hipc_errno, HIPC_MESSAGE_TYPE_CAST, HIPC_MESSAGE_TYPE_PUT, HIPC_MESSAGE_TYPE_SUCCESS, HIPC_MSGHDR_BYTE_BDYSZ, HIPC_MSGHDR_BYTE_OFFSET, HIPC_MSGHDR_BYTE_STRUNO, HIPC_MSGHDR_BYTE_TYPE, HIPC_MSGHDR_SIZE, HIPC_SUCCESS, hipcClientFeedStrumsg(), hipcClientTerminate(), setupTestClient(), and HIPC_client::simg_pp.
Referenced by main().
|
static |
Definition at line 264 of file test_client.c.
References HIPC_client::err_detail_str, HIPC_ERR_PROTOCOL_VIOLATION, HIPC_ERR_S_INV_STRUNO, HIPC_client::hipc_errno, HIPC_MESSAGE_TYPE_QUIT, HIPC_MSGHDR_BYTE_STRUNO, HIPC_SUCCESS, hipcClientFeedUnstrumsgAsError(), hipcClientTerminate(), msgWithStr(), and setupTestClient().
Referenced by main().
|
static |
Definition at line 288 of file test_client.c.
References HIPC_SUCCESS, hipcClientGetNsysmsg(), and setupTestClient().
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 298 of file test_client.c.
References test_hipcClientFeedStrumsg(), test_hipcClientFeedSysmsg(), test_hipcClientFeedUnstrumsgAsError(), test_hipcClientGetNsysmsg(), and test_hipcClientInit().
const struct HIPC_cl_indp_mbr HIPCUD_test_indp_member_log[] |
Definition at line 9 of file test_client.c.
const struct HIPC_cl_indp_mbr HIPCUD_test_indp_member_ctl[] |
Definition at line 15 of file test_client.c.
const struct HIPC_cl_indp_stru HIPCUD_test_indp_struct[] |
Definition at line 20 of file test_client.c.
const struct HIPC_cl_indp HIPCUD_test_indp |
Definition at line 25 of file test_client.c.
Referenced by setupTestClient(), and test_hipcClientFeedSysmsg().
unsigned char HIPCUD_test_cmdp_log_offset[] |
Definition at line 30 of file test_client.c.
unsigned char HIPCUD_test_cmdp_log_size[] |
Definition at line 34 of file test_client.c.
unsigned char HIPCUD_test_cmdp_ctl_offset[] |
Definition at line 38 of file test_client.c.
unsigned char HIPCUD_test_cmdp_ctl_size[] |
Definition at line 42 of file test_client.c.
struct HIPC_cl_dp_stru HIPCUD_test_cmdp_struct[] |
Definition at line 46 of file test_client.c.
unsigned char HIPCUD_test_structsizes[] |
Definition at line 51 of file test_client.c.
struct HIPC_cl_dp HIPCUD_test_cmdp |