botsense  3.2.0
RoadNarrows Client-Server Proxied Services Framework
BotSenseCore.i
1 /******************************************************************************
2  *
3  * Package: BotSense
4  *
5  * File: BotSenseCore.i
6  *
7  * $LastChangedDate$
8  * $Rev$
9  */
10 
11 /*!
12  * \file
13  *
14  * \brief Core BotSense python swig interface definitions file.
15  *
16  * \author Robin Knight (robin.knight@roadnarrows.com)
17  *
18  * \par Copyright:
19  * (C) 2010. RoadNarrows LLC.
20  * (http://www.roadnarrows.com)
21  * All Rights Reserved
22  */
23 
24 /*
25  * Permission is hereby granted, without written agreement and without
26  * license or royalty fees, to use, copy, modify, and distribute this
27  * software and its documentation for any purpose, provided that
28  * (1) The above copyright notice and the following two paragraphs
29  * appear in all copies of the source code and (2) redistributions
30  * including binaries reproduces these notices in the supporting
31  * documentation. Substantial modifications to this software may be
32  * copyrighted by their authors and need not follow the licensing terms
33  * described here, provided that the new terms are clearly indicated in
34  * all files where they apply.
35  *
36  * IN NO EVENT SHALL THE AUTHOR, ROADNARROWS LLC, OR ANY MEMBERS/EMPLOYEES
37  * OF ROADNARROW LLC OR DISTRIBUTORS OF THIS SOFTWARE BE LIABLE TO ANY
38  * PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
39  * DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION,
40  * EVEN IF THE AUTHORS OR ANY OF THE ABOVE PARTIES HAVE BEEN ADVISED OF
41  * THE POSSIBILITY OF SUCH DAMAGE.
42  *
43  * THE AUTHOR AND ROADNARROWS LLC SPECIFICALLY DISCLAIM ANY WARRANTIES,
44  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
45  * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN
46  * "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO
47  * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
48  *
49  ******************************************************************************/
50 
51 %module BotSenseCore
52 %{
53 #include "botsense/BotSense.h"
54 #include "botsense/libBotSense.h"
55 /* RDK add mod i/f here */
56 %}
57 
58 %begin
59 %{
60 /*! \file
61  * \brief Swig generated core wrapper c file.
62  */
63 %}
64 
65 /*
66  * Required RNR C types
67  */
68 typedef unsigned char byte_t;
69 typedef unsigned short ushort_t;
70 typedef unsigned int uint_t;
71 typedef unsigned long ulong_t;
72 typedef int bool_t;
73 
74 %include "carrays.i"
75 %include "cpointer.i"
76 
77 %include "botsense/BotSense.h"
78 %include "botsense/libBotSense.h"
79 
80 %array_functions(byte_t, byteArray);
81 %array_functions(BsVConnHnd_T, hndVConnArray);
82 %pointer_functions(uint_t, uintp);
83 
84 /*
85  * Higher-level python interface to the core C library.
86  */
87 %pythoncode
88 %{
89 
90 """
91 BotSense Core Python Inline Extensions and Wrappers.
92 """
93 
94 ## \file
95 ## \package BotSense.BotSenseCore
96 ##
97 ## \brief BotSense Swigged Core Python Interface Module.
98 ##
99 ## \author Robin Knight (robin.knight@roadnarrows.com)
100 ##
101 ## \par Copyright:
102 ## (C) 2012. RoadNarrows LLC.\n
103 ## (http://www.roadnarrows.com)\n
104 ## All Rights Reserved
105 ##
106 
107 %}