aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/adsi.h
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-03-31 10:02:52 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-03-31 10:02:52 +0000
commit56bd47f73c28351aaf06cf8f514be1c716bc38cd (patch)
tree8005fa2895a033072c3d09c1c7649e28901fedb3 /include/asterisk/adsi.h
parent2ddc55345a886ab93f1f3643b8907a44431accc5 (diff)
remove useless 'extern' and trailing whitespace.
(this is a whitespace-only change) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16646 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/adsi.h')
-rw-r--r--include/asterisk/adsi.h84
1 files changed, 42 insertions, 42 deletions
diff --git a/include/asterisk/adsi.h b/include/asterisk/adsi.h
index c38d2b76e..97a785692 100644
--- a/include/asterisk/adsi.h
+++ b/include/asterisk/adsi.h
@@ -17,7 +17,7 @@
*/
/*! \file
- * \brief ADSI Support (built upon Caller*ID)
+ * \brief ADSI Support (built upon Caller*ID)
*/
#ifndef _ASTERISK_ADSI_H
@@ -118,29 +118,29 @@
#define ADSI_DIR_FROM_RIGHT (1)
/*! Perform Asterisk ADSI initialization (for channel drivers that want */
-/* to support ADSI when the handset is first lifted) */
-/*!
+/* to support ADSI when the handset is first lifted) */
+/*!
* \param chan Channel to initialize for ADSI (if supported)
- *
+ *
* Returns 0 on success (or adsi unavailable) and -1 on hangup
- *
+ *
*/
-extern int adsi_channel_init(struct ast_channel *chan);
+int adsi_channel_init(struct ast_channel *chan);
-extern int adsi_begin_download(struct ast_channel *chan, char *service, unsigned char *fdn, unsigned char *sec, int version);
+int adsi_begin_download(struct ast_channel *chan, char *service, unsigned char *fdn, unsigned char *sec, int version);
-extern int adsi_end_download(struct ast_channel *chan);
+int adsi_end_download(struct ast_channel *chan);
/*! Restore ADSI initialization (for applications that play with ADSI */
/* and want to restore it to normal. If you touch "INFO" then you */
/* have to use the adsi_channel_init again instead. */
/*!
* \param chan Channel to restore
- *
+ *
* Returns 0 on success (or adsi unavailable) and -1 on hangup
*
*/
-extern int adsi_channel_restore(struct ast_channel *chan);
+int adsi_channel_restore(struct ast_channel *chan);
/*! Display some stuff on the screen */
/*!
@@ -152,7 +152,7 @@ extern int adsi_channel_restore(struct ast_channel *chan);
* Return 0 on success (or adsi unavailable) and -1 on hangup
*
*/
-extern int adsi_print(struct ast_channel *chan, char **lines, int *align, int voice);
+int adsi_print(struct ast_channel *chan, char **lines, int *align, int voice);
/*! Check if scripts for a given app are already loaded. Version may be -1 */
/* if any version is okay, or 0-255 for a specific version. */
@@ -165,22 +165,22 @@ extern int adsi_print(struct ast_channel *chan, char **lines, int *align, int vo
* Returns 0 if scripts is not loaded or not an ADSI CPE. Returns -1
* on hangup. Returns 1 if script already loaded.
*/
-extern int adsi_load_session(struct ast_channel *chan, unsigned char *app, int ver, int data);
-extern int adsi_unload_session(struct ast_channel *chan);
+int adsi_load_session(struct ast_channel *chan, unsigned char *app, int ver, int data);
+int adsi_unload_session(struct ast_channel *chan);
/* ADSI Layer 2 transmission functions */
-extern int adsi_transmit_messages(struct ast_channel *chan, unsigned char **msg, int *msglen, int *msgtype);
-extern int adsi_transmit_message(struct ast_channel *chan, unsigned char *msg, int msglen, int msgtype);
-extern int adsi_transmit_message_full(struct ast_channel *chan, unsigned char *msg, int msglen, int msgtype, int dowait);
+int adsi_transmit_messages(struct ast_channel *chan, unsigned char **msg, int *msglen, int *msgtype);
+int adsi_transmit_message(struct ast_channel *chan, unsigned char *msg, int msglen, int msgtype);
+int adsi_transmit_message_full(struct ast_channel *chan, unsigned char *msg, int msglen, int msgtype, int dowait);
/*! Read some encoded DTMF data. */
/*!
* Returns number of bytes received
*/
-extern int adsi_read_encoded_dtmf(struct ast_channel *chan, unsigned char *buf, int maxlen);
+int adsi_read_encoded_dtmf(struct ast_channel *chan, unsigned char *buf, int maxlen);
/* ADSI Layer 3 creation functions */
-/*! Connects an ADSI Display Session */
+/*! Connects an ADSI Display Session */
/*!
* \param buf Character buffer to create parameter in (must have at least 256 free)
* \param fdn Optional 4 byte Feature Download Number (for loading soft keys)
@@ -190,14 +190,14 @@ extern int adsi_read_encoded_dtmf(struct ast_channel *chan, unsigned char *buf,
*
*/
-extern int adsi_connect_session(unsigned char *buf, unsigned char *fdn, int ver);
+int adsi_connect_session(unsigned char *buf, unsigned char *fdn, int ver);
-/*! Build Query CPE ID of equipment */
+/*! Build Query CPE ID of equipment */
/*!
* Returns number of bytes added to message
*/
-extern int adsi_query_cpeid(unsigned char *buf);
-extern int adsi_query_cpeinfo(unsigned char *buf);
+int adsi_query_cpeid(unsigned char *buf);
+int adsi_query_cpeinfo(unsigned char *buf);
/*! Get CPE ID from an attached ADSI compatible CPE. */
/*!
@@ -205,11 +205,11 @@ extern int adsi_query_cpeinfo(unsigned char *buf);
* or -1 on hangup, or 0 if there was no hangup but it failed to find the
* device ID. Returns to voice mode if "voice" is non-zero.
*/
-extern int adsi_get_cpeid(struct ast_channel *chan, unsigned char *cpeid, int voice);
+int adsi_get_cpeid(struct ast_channel *chan, unsigned char *cpeid, int voice);
-extern int adsi_get_cpeinfo(struct ast_channel *chan, int *width, int *height, int *buttons, int voice);
+int adsi_get_cpeinfo(struct ast_channel *chan, int *width, int *height, int *buttons, int voice);
-/*! Begin an ADSI script download */
+/*! Begin an ADSI script download */
/*!
* \param buf Character buffer to create parameter in (must have at least 256 free)
* \param service a 1-18 byte name of the feature
@@ -221,7 +221,7 @@ extern int adsi_get_cpeinfo(struct ast_channel *chan, int *width, int *height, i
*
*/
-extern int adsi_download_connect(unsigned char *buf, char *service, unsigned char *fdn, unsigned char *sec, int ver);
+int adsi_download_connect(unsigned char *buf, char *service, unsigned char *fdn, unsigned char *sec, int ver);
/*! Disconnects a running session */
/*!
@@ -230,7 +230,7 @@ extern int adsi_download_connect(unsigned char *buf, char *service, unsigned cha
* Returns number of bytes added to buffer or -1 on error.
*
*/
-extern int adsi_disconnect_session(unsigned char *buf);
+int adsi_disconnect_session(unsigned char *buf);
/*! Disconnects (and hopefully saves) a downloaded script */
/*!
@@ -239,7 +239,7 @@ extern int adsi_disconnect_session(unsigned char *buf);
* Returns number of bytes added to buffer or -1 on error.
*
*/
-extern int adsi_download_disconnect(unsigned char *buf);
+int adsi_download_disconnect(unsigned char *buf);
/*! Puts CPE in data mode... */
/*!
@@ -248,9 +248,9 @@ extern int adsi_download_disconnect(unsigned char *buf);
* Returns number of bytes added to buffer or -1 on error.
*
*/
-extern int adsi_data_mode(unsigned char *buf);
-extern int adsi_clear_soft_keys(unsigned char *buf);
-extern int adsi_clear_screen(unsigned char *buf);
+int adsi_data_mode(unsigned char *buf);
+int adsi_clear_soft_keys(unsigned char *buf);
+int adsi_clear_screen(unsigned char *buf);
/*! Puts CPE in voice mode... */
/*!
@@ -260,16 +260,16 @@ extern int adsi_clear_screen(unsigned char *buf);
* Returns number of bytes added to buffer or -1 on error.
*
*/
-extern int adsi_voice_mode(unsigned char *buf, int when);
+int adsi_voice_mode(unsigned char *buf, int when);
/*! Returns non-zero if Channel does or might support ADSI */
/*!
* \param chan Channel to check
*
*/
-extern int adsi_available(struct ast_channel *chan);
+int adsi_available(struct ast_channel *chan);
-/*! Loads a line of info into the display */
+/*! Loads a line of info into the display */
/*!
* \param buf Character buffer to create parameter in (must have at least 256 free)
* \param page Page to load (ADSI_COMM_PAGE or ADSI_INFO_PAGE)
@@ -283,9 +283,9 @@ extern int adsi_available(struct ast_channel *chan);
*
*/
-extern int adsi_display(unsigned char *buf, int page, int line, int just, int wrap, char *col1, char *col2);
+int adsi_display(unsigned char *buf, int page, int line, int just, int wrap, char *col1, char *col2);
-/*! Sets the current line and page */
+/*! Sets the current line and page */
/*!
* \param buf Character buffer to create parameter in (must have at least 256 free)
* \param page Which page (ADSI_COMM_PAGE or ADSI_INFO_PAGE)
@@ -295,10 +295,10 @@ extern int adsi_display(unsigned char *buf, int page, int line, int just, int wr
*
*/
-extern int adsi_set_line(unsigned char *buf, int page, int line);
+int adsi_set_line(unsigned char *buf, int page, int line);
/*! Creates "load soft key" parameters */
-/*!
+/*!
* \param buf Character buffer to create parameter in (must have at least 256 free)
* \param key Key code from 2 to 33, for which key we are loading
* \param llabel Long label for key (1-18 bytes)
@@ -309,7 +309,7 @@ extern int adsi_set_line(unsigned char *buf, int page, int line);
* Returns number of bytes added to buffer or -1 on error.
*
*/
-extern int adsi_load_soft_key(unsigned char *buf, int key, char *llabel, char *slabel, char *ret, int data);
+int adsi_load_soft_key(unsigned char *buf, int key, char *llabel, char *slabel, char *ret, int data);
/*! Set which soft keys should be displayed */
/*!
@@ -320,7 +320,7 @@ extern int adsi_load_soft_key(unsigned char *buf, int key, char *llabel, char *s
* Returns number of bytes added to buffer or -1 on error.
*
*/
-extern int adsi_set_keys(unsigned char *buf, unsigned char *keys);
+int adsi_set_keys(unsigned char *buf, unsigned char *keys);
/*! Set input information */
/*!
@@ -334,7 +334,7 @@ extern int adsi_set_keys(unsigned char *buf, unsigned char *keys);
* Returns number of bytes added to buffer or -1 on error.
*
*/
-extern int adsi_input_control(unsigned char *buf, int page, int line, int display, int format, int just);
+int adsi_input_control(unsigned char *buf, int page, int line, int display, int format, int just);
/*! Set input format */
/*!
@@ -348,6 +348,6 @@ extern int adsi_input_control(unsigned char *buf, int page, int line, int displa
* Returns number of bytes added to buffer or -1 on error.
*
*/
-extern int adsi_input_format(unsigned char *buf, int num, int dir, int wrap, char *format1, char *format2);
+int adsi_input_format(unsigned char *buf, int num, int dir, int wrap, char *format1, char *format2);
#endif /* _ASTERISK_ADSI_H */