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

torture_su_root_osx.c File Reference


Detailed Description

For internal use only.

Test su_root_register functionality.

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

Martti Mela <Martti.Mela@nokia.com>

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

Date:
Created: Mon Oct 9 13:25:10 EEST 2006 mela

Definition in file torture_su_root_osx.c.

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

Go to the source code of this file.

Classes

struct  root_test_s
struct  test_ep_s

Defines

#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])
static int deinit_test (root_test_t *rt)
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)
int main (int argc, char *argv[])
static int register_test (root_test_t *rt)
void success_deinit (su_root_t *root, root_test_t *rt)
int success_init (su_root_t *root, 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)

Variables

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


Generated by  Doxygen 1.6.0   Back to index