Debian Codegraph @

addons/ooh323c/src/ooCmdChannel.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2004-2005 by Objective Systems, Inc.
3 *
4 * This software is furnished under an open source license and may be
5 * used and copied only in accordance with the terms of this license.
6 * The text of the license may generally be found in the root
7 * directory of this installation in the COPYING file. It
8 * can also be viewed online at the following URL:
9 *
10 * http://www.obj-sys.com/open/license.html
11 *
12 * Any redistributions of this file including modified versions must
13 * maintain this copyright notice.
14 *
15 *****************************************************************************/
16 /**
17 * @file ooCmdChannel.h
18 * This file contains stack commands which an user application can use to make
19 * call, hang call etc.
20 */
21
22 #ifndef OO_CMDCHANNEL_H
23 #define OO_CMDCHANNEL_H
24
25 #include "ootypes.h"
26 #include "ooStackCmds.h"
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30
31 #ifndef EXTERN
32 #if defined (MAKE_DLL)
33 #define EXTERN __declspec(dllexport)
34 #else
35 #define EXTERN
36 #endif /* MAKE_DLL */
37 #endif /* EXTERN */
38
39
40 #define OO_DEFAULT_CMDLISTENER_PORT 7575
41
42 /**
43 * @addtogroup channels
44 * @{
45 */
46
47 /**
48 * This function is used to setup a command connection with the main stack
49 * thread. The application commands are sent over this connection to stack
50 * thread.
51 *
52 * @return OO_OK, on success; OO_FAILED, on failure
53 */
54 EXTERN int ooCreateCmdConnection(void);
55 EXTERN int ooCreateCallCmdConnection(OOH323CallData*);
56
57 /**
58 * This function is used to close a command channel setup with the stack
59 * thread.
60 *
61 * @return OO_OK, on success; OO_FAILED, on failure
62 */
63 EXTERN int ooCloseCmdConnection(void);
64 EXTERN int ooCloseCallCmdConnection(OOH323CallData*);
65
66
67 /**
68 * This function is used by stack api to write stack commands to command
69 * channel.
70 *
71 * @return OO_OK, on success; OO_FAILED, on failure
72 */
73 EXTERN int ooWriteStackCommand(OOStackCommand *cmd);
74 EXTERN int ooWriteCallStackCommand(OOH323CallData* call, OOStackCommand *cmd);
75
76 /**
77 * This function is used by stack thread to read and process stack commands
78 * received over command channel.
79 *
80 * @return OO_OK, on success; OO_FAILED, on failure
81 */
82 EXTERN int ooReadAndProcessStackCommand(void);
83 EXTERN int ooReadAndProcessCallStackCommand(OOH323CallData*);
84
85
86 /**
87 * @}
88 */
89
90 #ifdef __cplusplus
91 }
92 #endif
93
94 #endif