[asterisk-commits] russell: branch russell/bindings r103277 - in /team/russell/bindings: binding...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Feb 10 13:28:02 CST 2008


Author: russell
Date: Sun Feb 10 13:28:01 2008
New Revision: 103277

URL: http://svn.digium.com/view/asterisk?view=rev&rev=103277
Log:
avoid compiling warning about the SWIG_init function not being defined in such
a way that doesn't require modifying the automatically generated file

Added:
    team/russell/bindings/res/res_python/
    team/russell/bindings/res/res_python/res_python.h   (with props)
Modified:
    team/russell/bindings/bindings/cdr.i
    team/russell/bindings/bindings/cdr_wrap.c
    team/russell/bindings/res/res_python.c

Modified: team/russell/bindings/bindings/cdr.i
URL: http://svn.digium.com/view/asterisk/team/russell/bindings/bindings/cdr.i?view=diff&rev=103277&r1=103276&r2=103277
==============================================================================
--- team/russell/bindings/bindings/cdr.i (original)
+++ team/russell/bindings/bindings/cdr.i Sun Feb 10 13:28:01 2008
@@ -4,6 +4,8 @@
 #include "asterisk.h"
 #include "asterisk/cdr.h"
 #include "asterisk/linkedlists.h"
+
+#include "res_python/res_python.h"
 %}
 
 struct timeval {

Modified: team/russell/bindings/bindings/cdr_wrap.c
URL: http://svn.digium.com/view/asterisk/team/russell/bindings/bindings/cdr_wrap.c?view=diff&rev=103277&r1=103276&r2=103277
==============================================================================
--- team/russell/bindings/bindings/cdr_wrap.c (original)
+++ team/russell/bindings/bindings/cdr_wrap.c Sun Feb 10 13:28:01 2008
@@ -2478,7 +2478,6 @@
   ------------------------------------------------*/
 #define SWIG_init    init_cdr
 
-void SWIG_init(void);
 #define SWIG_name    "_cdr"
 
 #define SWIGVERSION 0x010333 
@@ -2492,6 +2491,8 @@
 #include "asterisk.h"
 #include "asterisk/cdr.h"
 #include "asterisk/linkedlists.h"
+
+#include "res_python/res_python.h"
 
 
 SWIGINTERN int

Modified: team/russell/bindings/res/res_python.c
URL: http://svn.digium.com/view/asterisk/team/russell/bindings/res/res_python.c?view=diff&rev=103277&r1=103276&r2=103277
==============================================================================
--- team/russell/bindings/res/res_python.c (original)
+++ team/russell/bindings/res/res_python.c Sun Feb 10 13:28:01 2008
@@ -47,6 +47,8 @@
 
 #include "../bindings/swigpyrun.h"
 
+#include "res_python/res_python.h"
+
 static const char config_file[] = "bindings.conf";
 
 static const char cdr_mod_name[] = "python";
@@ -64,9 +66,6 @@
 /*! \note We're going to execute all of them ... */
 #define PY_CDR_MODS_BUCKETS 1
 struct ao2_container *py_cdr_mods;
-
-/*! Comes from python_cdr_wrap.c */
-void init_cdr(void);
 
 static struct py_cdr_mod *unref_py_cdr_mod(struct py_cdr_mod *py_cdr_mod)
 {

Added: team/russell/bindings/res/res_python/res_python.h
URL: http://svn.digium.com/view/asterisk/team/russell/bindings/res/res_python/res_python.h?view=auto&rev=103277
==============================================================================
--- team/russell/bindings/res/res_python/res_python.h (added)
+++ team/russell/bindings/res/res_python/res_python.h Sun Feb 10 13:28:01 2008
@@ -1,0 +1,25 @@
+/*
+ * Asterisk -- An open source telephony toolkit.
+ *
+ * Copyright (C) 2008, Digium, Inc.
+ *
+ * Russell Bryant <russell at digium.com>
+ *
+ * See http://www.asterisk.org for more information about
+ * the Asterisk project. Please do not directly contact
+ * any of the maintainers of this project for assistance;
+ * the project provides a web site, mailing lists and IRC
+ * channels for your use.
+ *
+ * This program is free software, distributed under the terms of
+ * the GNU General Public License Version 2. See the LICENSE file
+ * at the top of the source tree.
+ */
+
+#ifndef RES_PYTHON_H
+#define RES_PYTHON_H
+
+/*! defined by python_cdr_wrap.c */
+void init_cdr(void);
+
+#endif /* RES_PYTHON_H */

Propchange: team/russell/bindings/res/res_python/res_python.h
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: team/russell/bindings/res/res_python/res_python.h
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: team/russell/bindings/res/res_python/res_python.h
------------------------------------------------------------------------------
    svn:mime-type = text/plain




More information about the asterisk-commits mailing list