Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 100697
Collapse All | Expand All

(-)../asterisk-1.0.9/include/asterisk/adsi.h (-29 / +58 lines)
Lines 118-128 Link Here
118
 * Returns 0 on success (or adsi unavailable) and -1 on hangup
118
 * Returns 0 on success (or adsi unavailable) and -1 on hangup
119
 * 
119
 * 
120
 */
120
 */
121
extern int adsi_channel_init(struct ast_channel *chan);
121
extern int adsi_channel_init(struct ast_channel *chan)
122
	__attribute__ ((weak));
122
123
123
extern int adsi_begin_download(struct ast_channel *chan, char *service, char *fdn, char *sec, int version);
124
extern int adsi_begin_download(struct ast_channel *chan, char *service, char *fdn, char *sec, int version)
125
	__attribute__ ((weak));
124
126
125
extern int adsi_end_download(struct ast_channel *chan);
127
extern int adsi_end_download(struct ast_channel *chan)
128
	__attribute__ ((weak));
126
129
127
//! Restore ADSI initialization (for applications that play with ADSI
130
//! Restore ADSI initialization (for applications that play with ADSI
128
//  and want to restore it to normal.  If you touch "INFO" then you
131
//  and want to restore it to normal.  If you touch "INFO" then you
Lines 133-139 Link Here
133
 * Returns 0 on success (or adsi unavailable) and -1 on hangup
136
 * Returns 0 on success (or adsi unavailable) and -1 on hangup
134
 *
137
 *
135
 */
138
 */
136
extern int adsi_channel_restore(struct ast_channel *chan);
139
extern int adsi_channel_restore(struct ast_channel *chan)
140
	__attribute__ ((weak));
137
141
138
//! Display some stuff on the screen
142
//! Display some stuff on the screen
139
/*!
143
/*!
Lines 145-151 Link Here
145
 * Return 0 on success (or adsi unavailable) and -1 on hangup
149
 * Return 0 on success (or adsi unavailable) and -1 on hangup
146
 *
150
 *
147
 */
151
 */
148
extern int adsi_print(struct ast_channel *chan, char **lines, int *align, int voice);
152
extern int adsi_print(struct ast_channel *chan, char **lines, int *align, int voice)
153
	__attribute__ ((weak));
149
154
150
//! Check if scripts for a given app are already loaded.  Version may be -1
155
//! Check if scripts for a given app are already loaded.  Version may be -1
151
//  if any version is okay, or 0-255 for a specific version.
156
//  if any version is okay, or 0-255 for a specific version.
Lines 158-175 Link Here
158
 * Returns 0 if scripts is not loaded or not an ADSI CPE.  Returns -1
163
 * Returns 0 if scripts is not loaded or not an ADSI CPE.  Returns -1
159
 * on hangup.  Returns 1 if script already loaded.
164
 * on hangup.  Returns 1 if script already loaded.
160
 */
165
 */
161
extern int adsi_load_session(struct ast_channel *chan, unsigned char *app, int ver, int data);
166
extern int adsi_load_session(struct ast_channel *chan, unsigned char *app, int ver, int data)
162
extern int adsi_unload_session(struct ast_channel *chan);
167
	__attribute__ ((weak));
168
extern int adsi_unload_session(struct ast_channel *chan)
169
	__attribute__ ((weak));
163
170
164
/* ADSI Layer 2 transmission functions */
171
/* ADSI Layer 2 transmission functions */
165
extern int adsi_transmit_messages(struct ast_channel *chan, unsigned char **msg, int *msglen, int *msgtype);
172
extern int adsi_transmit_messages(struct ast_channel *chan, unsigned char **msg, int *msglen, int *msgtype)
166
extern int adsi_transmit_message(struct ast_channel *chan, unsigned char *msg, int msglen, int msgtype);
173
	__attribute__ ((weak));
174
extern int adsi_transmit_message(struct ast_channel *chan, unsigned char *msg, int msglen, int msgtype)
175
	__attribute__ ((weak));
167
176
168
//! Read some encoded DTMF data.  
177
//! Read some encoded DTMF data.  
169
/*!
178
/*!
170
 * Returns number of bytes received
179
 * Returns number of bytes received
171
 */
180
 */
172
extern int adsi_read_encoded_dtmf(struct ast_channel *chan, unsigned char *buf, int maxlen);
181
extern int adsi_read_encoded_dtmf(struct ast_channel *chan, unsigned char *buf, int maxlen)
182
	__attribute__ ((weak));
173
183
174
/* ADSI Layer 3 creation functions */
184
/* ADSI Layer 3 creation functions */
175
185
Lines 183-196 Link Here
183
 *
193
 *
184
 */
194
 */
185
195
186
extern int adsi_connect_session(unsigned char *buf, unsigned char *fdn, int ver);
196
extern int adsi_connect_session(unsigned char *buf, unsigned char *fdn, int ver)
197
	__attribute__ ((weak));
187
198
188
//! Build Query CPE ID of equipment */
199
//! Build Query CPE ID of equipment */
189
/*!
200
/*!
190
 *  Returns number of bytes added to message
201
 *  Returns number of bytes added to message
191
 */
202
 */
192
extern int adsi_query_cpeid(unsigned char *buf);
203
extern int adsi_query_cpeid(unsigned char *buf)
193
extern int adsi_query_cpeinfo(unsigned char *buf);
204
	__attribute__ ((weak));
205
extern int adsi_query_cpeinfo(unsigned char *buf)
206
	__attribute__ ((weak));
194
207
195
//! Get CPE ID from an attached ADSI compatible CPE.
208
//! Get CPE ID from an attached ADSI compatible CPE.
196
/*!
209
/*!
Lines 198-206 Link Here
198
 * or -1 on hangup, or 0 if there was no hangup but it failed to find the
211
 * or -1 on hangup, or 0 if there was no hangup but it failed to find the
199
 * device ID.  Returns to voice mode if "voice" is non-zero.
212
 * device ID.  Returns to voice mode if "voice" is non-zero.
200
 */
213
 */
201
extern int adsi_get_cpeid(struct ast_channel *chan, unsigned char *cpeid, int voice);
214
extern int adsi_get_cpeid(struct ast_channel *chan, unsigned char *cpeid, int voice)
215
	__attribute__ ((weak));
202
216
203
extern int adsi_get_cpeinfo(struct ast_channel *chan, int *width, int *height, int *buttons, int voice);
217
extern int adsi_get_cpeinfo(struct ast_channel *chan, int *width, int *height, int *buttons, int voice)
218
	__attribute__ ((weak));
204
219
205
//! Begin an ADSI script download */
220
//! Begin an ADSI script download */
206
/*!
221
/*!
Lines 214-220 Link Here
214
 *
229
 *
215
 */
230
 */
216
231
217
extern int adsi_download_connect(unsigned char *buf, unsigned char *service, unsigned char *fdn, unsigned char *sec, int ver);
232
extern int adsi_download_connect(unsigned char *buf, unsigned char *service, unsigned char *fdn, unsigned char *sec, int ver)
233
	__attribute__ ((weak));
218
234
219
//! Disconnects a running session
235
//! Disconnects a running session
220
/*!
236
/*!
Lines 223-229 Link Here
223
 * Returns number of bytes added to buffer or -1 on error.
239
 * Returns number of bytes added to buffer or -1 on error.
224
 *
240
 *
225
 */
241
 */
226
extern int adsi_disconnect_session(unsigned char *buf);
242
extern int adsi_disconnect_session(unsigned char *buf)
243
	__attribute__ ((weak));
227
244
228
//! Disconnects (and hopefully saves) a downloaded script
245
//! Disconnects (and hopefully saves) a downloaded script
229
/*!
246
/*!
Lines 232-238 Link Here
232
 * Returns number of bytes added to buffer or -1 on error.
249
 * Returns number of bytes added to buffer or -1 on error.
233
 *
250
 *
234
 */
251
 */
235
extern int adsi_download_disconnect(unsigned char *buf);
252
extern int adsi_download_disconnect(unsigned char *buf)
253
	__attribute__ ((weak));
236
254
237
//! Puts CPE in data mode...
255
//! Puts CPE in data mode...
238
/*!
256
/*!
Lines 241-249 Link Here
241
 * Returns number of bytes added to buffer or -1 on error.
259
 * Returns number of bytes added to buffer or -1 on error.
242
 *
260
 *
243
 */
261
 */
244
extern int adsi_data_mode(unsigned char *buf);
262
extern int adsi_data_mode(unsigned char *buf)
245
extern int adsi_clear_soft_keys(unsigned char *buf);
263
	__attribute__ ((weak));
246
extern int adsi_clear_screen(unsigned char *buf);
264
extern int adsi_clear_soft_keys(unsigned char *buf)
265
	__attribute__ ((weak));
266
extern int adsi_clear_screen(unsigned char *buf)
267
	__attribute__ ((weak));
247
268
248
//! Puts CPE in voice mode...
269
//! Puts CPE in voice mode...
249
/*!
270
/*!
Lines 253-266 Link Here
253
 * Returns number of bytes added to buffer or -1 on error.
274
 * Returns number of bytes added to buffer or -1 on error.
254
 *
275
 *
255
 */
276
 */
256
extern int adsi_voice_mode(unsigned char *buf, int when);
277
extern int adsi_voice_mode(unsigned char *buf, int when)
278
	__attribute__ ((weak));
257
279
258
//! Returns non-zero if Channel does or might support ADSI
280
//! Returns non-zero if Channel does or might support ADSI
259
/*!
281
/*!
260
 * \param chan Channel to check
282
 * \param chan Channel to check
261
 *
283
 *
262
 */
284
 */
263
extern int adsi_available(struct ast_channel *chan);
285
extern int adsi_available(struct ast_channel *chan)
286
	__attribute__ ((weak));
264
287
265
//! Loads a line of info into the display */
288
//! Loads a line of info into the display */
266
/*!
289
/*!
Lines 276-282 Link Here
276
 *
299
 *
277
 */
300
 */
278
301
279
extern int adsi_display(unsigned char *buf, int page, int line, int just, int wrap, unsigned char *col1, unsigned char *col2);
302
extern int adsi_display(unsigned char *buf, int page, int line, int just, int wrap, unsigned char *col1, unsigned char *col2)
303
	__attribute__ ((weak));
280
304
281
//! Sets the current line and page */
305
//! Sets the current line and page */
282
/*!
306
/*!
Lines 288-294 Link Here
288
 *
312
 *
289
 */
313
 */
290
314
291
extern int adsi_set_line(unsigned char *buf, int page, int line);
315
extern int adsi_set_line(unsigned char *buf, int page, int line)
316
	__attribute__ ((weak));
292
317
293
//! Creates "load soft key" parameters
318
//! Creates "load soft key" parameters
294
/*! 
319
/*! 
Lines 302-308 Link Here
302
 * Returns number of bytes added to buffer or -1 on error.
327
 * Returns number of bytes added to buffer or -1 on error.
303
 *
328
 *
304
 */
329
 */
305
extern int adsi_load_soft_key(unsigned char *buf, int key, unsigned char *llabel, unsigned char *slabel, unsigned char *ret, int data);
330
extern int adsi_load_soft_key(unsigned char *buf, int key, unsigned char *llabel, unsigned char *slabel, unsigned char *ret, int data)
331
	__attribute__ ((weak));
306
332
307
//! Set which soft keys should be displayed
333
//! Set which soft keys should be displayed
308
/*!
334
/*!
Lines 313-319 Link Here
313
 * Returns number of bytes added to buffer or -1 on error.
339
 * Returns number of bytes added to buffer or -1 on error.
314
 *
340
 *
315
 */
341
 */
316
extern int adsi_set_keys(unsigned char *buf, unsigned char *keys);
342
extern int adsi_set_keys(unsigned char *buf, unsigned char *keys)
343
	__attribute__ ((weak));
317
344
318
//! Set input information
345
//! Set input information
319
/*!
346
/*!
Lines 327-333 Link Here
327
 * Returns number of bytes added to buffer or -1 on error.
354
 * Returns number of bytes added to buffer or -1 on error.
328
 *
355
 *
329
 */
356
 */
330
extern int adsi_input_control(unsigned char *buf, int page, int line, int display, int format, int just);
357
extern int adsi_input_control(unsigned char *buf, int page, int line, int display, int format, int just)
358
	__attribute__ ((weak));
331
359
332
//! Set input format
360
//! Set input format
333
/*!
361
/*!
Lines 341-345 Link Here
341
 * Returns number of bytes added to buffer or -1 on error.
369
 * Returns number of bytes added to buffer or -1 on error.
342
 *
370
 *
343
 */
371
 */
344
extern int adsi_input_format(unsigned char *buf, int num, int dir, int wrap, unsigned char *format1, unsigned char *format2);
372
extern int adsi_input_format(unsigned char *buf, int num, int dir, int wrap, unsigned char *format1, unsigned char *format2)
373
	__attribute__ ((weak));
345
#endif
374
#endif

Return to bug 100697