[Asterisk-cvs] asterisk/channels/h323 ast_h323.cpp,1.51,1.52 ast_h323.h,1.23,1.24 chan_h323.h,1.21,1.22
markster at lists.digium.com
markster at lists.digium.com
Sat Jun 26 00:04:23 CDT 2004
Update of /usr/cvsroot/asterisk/channels/h323
In directory mongoose.digium.com:/tmp/cvs-serv14568/channels/h323
Modified Files:
ast_h323.cpp ast_h323.h chan_h323.h
Log Message:
Merge source cleanups (bug #1911)
Index: ast_h323.cpp
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/h323/ast_h323.cpp,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -d -r1.51 -r1.52
--- ast_h323.cpp 15 Jun 2004 20:56:06 -0000 1.51
+++ ast_h323.cpp 26 Jun 2004 03:50:14 -0000 1.52
@@ -25,9 +25,28 @@
*
* Version Info: $Id$
*/
+#include <arpa/inet.h>
+
+#include <list>
+#include <string>
+#include <algorithm>
+
+#include <ptlib.h>
+#include <h323.h>
+#include <h323pdu.h>
+#include <mediafmt.h>
+#include <lid.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
#include <asterisk/logger.h>
-#include "ast_h323.h"
+#ifdef __cplusplus
+}
+#endif
+#include "chan_h323.h"
+#include "ast_h323.h"
/* PWlib Required Components */
#define MAJOR_VERSION 1
Index: ast_h323.h
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/h323/ast_h323.h,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- ast_h323.h 25 May 2004 02:27:59 -0000 1.23
+++ ast_h323.h 26 Jun 2004 03:50:14 -0000 1.24
@@ -26,18 +26,8 @@
* Version Info: $Id$
*/
-
-#include <ptlib.h>
-#include <h323.h>
-#include <h323pdu.h>
-#include <mediafmt.h>
-#include <lid.h>
-
-#include <list>
-#include <string>
-#include <algorithm>
-
-#include "chan_h323.h"
+#ifndef AST_H323_H
+#define AST_H323_H
/** These need to be redefined here because the C++
side of this driver is blind to the asterisk headers */
@@ -306,3 +296,4 @@
};
+#endif /* !defined AST_H323_H */
Index: chan_h323.h
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/h323/chan_h323.h,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- chan_h323.h 15 Jun 2004 20:56:06 -0000 1.21
+++ chan_h323.h 26 Jun 2004 03:50:14 -0000 1.22
@@ -116,48 +116,48 @@
/* This is a callback prototype function, called pass
DTMF down the RTP. */
typedef int (*send_digit_cb)(unsigned, char);
-send_digit_cb on_send_digit;
+extern send_digit_cb on_send_digit;
/* This is a callback prototype function, called to collect
the external RTP port from Asterisk. */
typedef rtp_info_t *(*on_connection_cb)(unsigned);
-on_connection_cb on_create_connection;
+extern on_connection_cb on_create_connection;
/* This is a callback prototype function, called upon
an incoming call happens. */
typedef int (*setup_incoming_cb)(call_details_t);
-setup_incoming_cb on_incoming_call;
+extern setup_incoming_cb on_incoming_call;
/* This is a callback prototype function, called upon
an outbound call. */
typedef int (*setup_outbound_cb)(call_details_t);
-setup_outbound_cb on_outgoing_call;
+extern setup_outbound_cb on_outgoing_call;
/* This is a callback prototype function, called when the openh323
OnStartLogicalChannel is invoked. */
typedef void (*start_logchan_cb)(unsigned int, const char *, int);
-start_logchan_cb on_start_logical_channel;
+extern start_logchan_cb on_start_logical_channel;
/* This is a callback prototype function, called when openh323
OnAlerting is invoked */
typedef void (*chan_ringing_cb)(unsigned);
-chan_ringing_cb on_chan_ringing;
+extern chan_ringing_cb on_chan_ringing;
/* This is a callback protoype function, called when the openh323
OnConnectionEstablished is inovked */
typedef void (*con_established_cb)(unsigned);
-con_established_cb on_connection_established;
+extern con_established_cb on_connection_established;
/* This is a callback prototype function, called when the openH323
OnConnectionCleared callback is invoked */
typedef void (*clear_con_cb)(call_details_t);
-clear_con_cb on_connection_cleared;
+extern clear_con_cb on_connection_cleared;
typedef int (*answer_call_cb)(unsigned);
-answer_call_cb on_answer_call;
+extern answer_call_cb on_answer_call;
/* debug flag */
-int h323debug;
+extern int h323debug;
#define H323_DTMF_RFC2833 (1 << 0)
#define H323_DTMF_INBAND (1 << 1)
More information about the svn-commits
mailing list