SysLink API Reference  2.21.03.11
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
GateProcess.h
Go to the documentation of this file.
1 
8 /*
9  * ============================================================================
10  *
11  * Copyright (c) 2008-2012, Texas Instruments Incorporated
12  *
13  * Redistribution and use in source and binary forms, with or without
14  * modification, are permitted provided that the following conditions
15  * are met:
16  *
17  * * Redistributions of source code must retain the above copyright
18  * notice, this list of conditions and the following disclaimer.
19  *
20  * * Redistributions in binary form must reproduce the above copyright
21  * notice, this list of conditions and the following disclaimer in the
22  * documentation and/or other materials provided with the distribution.
23  *
24  * * Neither the name of Texas Instruments Incorporated nor the names of
25  * its contributors may be used to endorse or promote products derived
26  * from this software without specific prior written permission.
27  *
28  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
29  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
30  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
31  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
32  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
33  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
34  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
35  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
36  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
37  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
38  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39  * Contact information for paper mail:
40  * Texas Instruments
41  * Post Office Box 655303
42  * Dallas, Texas 75265
43  * Contact information:
44  * http://www-k.ext.ti.com/sc/technical-support/product-information-centers.htm?
45  * DCMP=TIHomeTracking&HQS=Other+OT+home_d_contact
46  * ============================================================================
47  *
48  */
49 
50 
51 
52 #ifndef ti_syslink_utils_GateProcess
53 #define ti_syslink_utils_GateProcess
54 
55 
56 #if defined (__cplusplus)
57 extern "C" {
58 #endif
59 
60 
61 /* =============================================================================
62  * Status codes
63  * =============================================================================
64  */
65 
70 #define GateProcess_E_INVALIDARG (-1)
71 
76 #define GateProcess_E_MEMORY (-2)
77 
82 #define GateProcess_E_BUSY (-3)
83 
88 #define GateProcess_E_FAIL (-4)
89 
94 #define GateProcess_E_NOTFOUND (-5)
95 
100 #define GateProcess_E_INVALIDSTATE (-6)
101 
106 #define GateProcess_E_INUSE (-7)
107 
112 #define GateProcess_S_SUCCESS (0)
113 
114 
115 /* =============================================================================
116  * Macros and types
117  * =============================================================================
118  */
121 
126 
130 typedef struct {
133 
134 
138 typedef struct {
139  Char _f1[16];
141 
142 
143 /* =============================================================================
144  * APIs
145  * =============================================================================
146  */
147 
148 /*
149  * ======== GateProcess_enter ========
150  */
151 IArg GateProcess_enter(GateProcess_Handle handle);
152 
153 /*
154  * ======== GateProcess_leave ========
155  */
156 Void GateProcess_leave(GateProcess_Handle handle, IArg key);
157 
158 /*
159  * ======== GateProcess_Params_init ========
160  */
162 
163 /*
164  * ======== GateProcess_create ========
165  */
166 GateProcess_Handle GateProcess_create(
167  Ptr sharedAddr,
168  const GateProcess_Params * params);
169 
170 /*
171  * ======== GateProcess_delete ========
172  */
173 Int GateProcess_delete(GateProcess_Handle *pHandle);
174 
175 /*
176  * ======== GateProcess_open ========
177  */
178 GateProcess_Handle GateProcess_open(Ptr sharedAddr);
179 
180 /*
181  * ======== GateProcess_close ========
182  */
183 Int GateProcess_close(GateProcess_Handle *pHandle);
184 
185 /*
186  * ======== GateProcess_shMemSize ========
187  */
189 
190 
191 #if defined (__cplusplus)
192 }
193 #endif
194 
195 #endif /* ti_syslink_utils_GateProcess */
Copyright 2014, Texas Instruments Incorporated