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

Classes | Defines | Typedefs | Functions | Variables

torture_su_root.c File Reference

#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>
Include dependency graph for torture_su_root.c:

Go to the source code of this file.

Classes

struct  root_test_s
struct  test_ep_s

Defines

#define ALARM_IN_SECONDS   120
#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

Typedefs

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

Functions

static int clone_test (root_test_t rt[1], int multithread)
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])
static void expire1 (root_test_t *rt, su_timer_t *t, su_timer_arg_t *arg)
static void expire1destroy (root_test_t *rt, su_timer_t *t, su_timer_arg_t *arg)
static void expire2 (root_test_t *rt, su_timer_t *t, su_timer_arg_t *arg)
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_deferrable_timer (void *void_rt)
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)
int timer_test (root_test_t rt[1])
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)

Variables

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

Detailed Description

Test su_root_register functionality.

Author:
Pekka Pessi <Pekka.Pessi@nokia.com>

Copyright (c) 2002 Nokia Research Center. All rights reserved.

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

Definition in file torture_su_root.c.


Generated by  Doxygen 1.6.0   Back to index