Logo Search packages:      
Sourcecode: sofia-sip version File versions

torture_su_root.c File Reference

Detailed Description

For internal use only.

Test su_root_register functionality.

Pekka Pessi <Pekka.Pessi@nokia.com>
Copyright (c) 2002 Nokia Research Center. All rights reserved.

Created: Wed Jun 12 15:18:11 2002 ppessi

Definition in file torture_su_root.c.

#include "config.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <sofia-sip/tstdef.h>
#include <sofia-sip/su_wait.h>
#include <sofia-sip/su_alloc.h>
#include <sofia-sip/su_log.h>

Go to the source code of this file.


struct  root_test_s
struct  test_ep_s


#define SU_MSG_ARG_T   root_test_t *
#define SU_ROOT_MAGIC_T   root_test_t
#define SU_WAKEUP_ARG_T   test_ep_t
#define TSTFLAGS   rt->rt_flags


typedef struct root_test_s root_test_t
typedef struct test_ep_s test_ep_at [1]
typedef struct test_ep_s test_ep_t


static int clone_test (root_test_t rt[1])
static void deinit_simple_msg (su_msg_arg_t *arg)
static int deinit_test (root_test_t *rt)
int event_test (root_test_t rt[1])
void fail_deinit (su_root_t *root, root_test_t *rt)
int fail_init (su_root_t *root, root_test_t *rt)
int init_test (root_test_t *rt, char const *preference, su_port_create_f *create, su_clone_start_f *start)
int main (int argc, char *argv[])
void receive_a_reporter (root_test_t *rt, su_msg_r msg, su_msg_arg_t *arg)
void receive_recv_report (root_test_t *rt, su_msg_r msg, su_msg_arg_t *arg)
static void receive_simple_msg (root_test_t *rt, su_msg_r msg, su_msg_arg_t *arg)
static int register_test (root_test_t *rt)
void send_a_reporter_msg (root_test_t *rt, su_msg_r msg, su_msg_arg_t *arg)
static int set_execute_bit_and_return_3 (void *void_rt)
void success_deinit (su_root_t *root, root_test_t *rt)
int success_init (su_root_t *root, root_test_t *rt)
int test_api (root_test_t *rt)
static void test_run (root_test_t *rt)
void usage (int exitcode)
int wakeup (root_test_t *rt, su_wait_t *w, test_ep_t *ep)
static int wakeup0 (root_test_t *rt, su_wait_t *w, test_ep_t *ep)
static int wakeup1 (root_test_t *rt, su_wait_t *w, test_ep_t *ep)
static int wakeup2 (root_test_t *rt, su_wait_t *w, test_ep_t *ep)
static int wakeup3 (root_test_t *rt, su_wait_t *w, test_ep_t *ep)
static int wakeup4 (root_test_t *rt, su_wait_t *w, test_ep_t *ep)
int wakeup_remove (root_test_t *rt, su_wait_t *w, test_ep_t *node)


char const * name = "torture_su_root"
static su_wakeup_f wakeups [5] = { wakeup0, wakeup1, wakeup2, wakeup3, wakeup4 }

Generated by  Doxygen 1.6.0   Back to index