[svn-commits] trunk r32349 - /trunk/include/asterisk/

svn-commits at lists.digium.com svn-commits at lists.digium.com
Mon Jun 5 11:05:53 MST 2006


Author: kpfleming
Date: Mon Jun  5 13:05:53 2006
New Revision: 32349

URL: http://svn.digium.com/view/asterisk?rev=32349&view=rev
Log:
yet another massive performance and memory savings improvement

Modified:
    trunk/include/asterisk/alaw.h
    trunk/include/asterisk/channel.h
    trunk/include/asterisk/file.h
    trunk/include/asterisk/frame.h
    trunk/include/asterisk/ulaw.h

Modified: trunk/include/asterisk/alaw.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/alaw.h?rev=32349&r1=32348&r2=32349&view=diff
==============================================================================
--- trunk/include/asterisk/alaw.h (original)
+++ trunk/include/asterisk/alaw.h Mon Jun  5 13:05:53 2006
@@ -27,7 +27,7 @@
 /*!
  * To init the ulaw to slinear conversion stuff, this needs to be run.
  */
-extern void ast_alaw_init(void);
+void ast_alaw_init(void);
 
 /*! converts signed linear to mulaw */
 /*!

Modified: trunk/include/asterisk/channel.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/channel.h?rev=32349&r1=32348&r2=32349&view=diff
==============================================================================
--- trunk/include/asterisk/channel.h (original)
+++ trunk/include/asterisk/channel.h Mon Jun  5 13:05:53 2006
@@ -999,7 +999,7 @@
 
 /*! Pick the best codec  */
 /* Choose the best codec...  Uhhh...   Yah. */
-extern int ast_best_codec(int fmts);
+int ast_best_codec(int fmts);
 
 
 /*! Checks the value of an option */
@@ -1254,10 +1254,10 @@
 									ast_set_flag(c, AST_FLAG_BLOCKING); \
 									} }
 
-extern ast_group_t ast_get_group(char *s);
+ast_group_t ast_get_group(char *s);
 
 /*! \brief print call- and pickup groups into buffer */
-extern char *ast_print_group(char *buf, int buflen, ast_group_t group);
+char *ast_print_group(char *buf, int buflen, ast_group_t group);
 
 /*! \brief Convert enum channelreloadreason to text string for manager event
 	\param reason	Enum channelreloadreason - reason for reload (manager, cli, start etc)
@@ -1265,7 +1265,7 @@
 const char *channelreloadreason2txt(enum channelreloadreason reason);
 
 /*! \brief return an ast_variable list of channeltypes */
-extern struct ast_variable *ast_channeltype_list(void);
+struct ast_variable *ast_channeltype_list(void);
 
 #if defined(__cplusplus) || defined(c_plusplus)
 }

Modified: trunk/include/asterisk/file.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/file.h?rev=32349&r1=32348&r2=32349&view=diff
==============================================================================
--- trunk/include/asterisk/file.h (original)
+++ trunk/include/asterisk/file.h Mon Jun  5 13:05:53 2006
@@ -394,7 +394,7 @@
  * Initializes all the various file stuff.  Basically just registers the cli stuff
  * Returns 0 all the time
  */
-extern int ast_file_init(void);
+int ast_file_init(void);
 
 
 #define AST_RESERVED_POINTERS 20

Modified: trunk/include/asterisk/frame.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/frame.h?rev=32349&r1=32348&r2=32349&view=diff
==============================================================================
--- trunk/include/asterisk/frame.h (original)
+++ trunk/include/asterisk/frame.h Mon Jun  5 13:05:53 2006
@@ -408,7 +408,7 @@
  * \param format id of format
  * \return A static string containing the name of the format or "UNKN" if unknown.
  */
-extern char* ast_getformatname(int format);
+char* ast_getformatname(int format);
 
 /*! \brief Get the names of a set of formats
  * \param buf a buffer for the output string
@@ -418,33 +418,33 @@
  * ex: for format=AST_FORMAT_GSM|AST_FORMAT_SPEEX|AST_FORMAT_ILBC it will return "0x602 (GSM|SPEEX|ILBC)"
  * \return The return value is buf.
  */
-extern char* ast_getformatname_multiple(char *buf, size_t size, int format);
+char* ast_getformatname_multiple(char *buf, size_t size, int format);
 
 /*!
  * \brief Gets a format from a name.
  * \param name string of format
  * \return This returns the form of the format in binary on success, 0 on error.
  */
-extern int ast_getformatbyname(const char *name);
+int ast_getformatbyname(const char *name);
 
 /*! \brief Get a name from a format 
  * Gets a name from a format
  * \param codec codec number (1,2,4,8,16,etc.)
  * \return This returns a static string identifying the format on success, 0 on error.
  */
-extern char *ast_codec2str(int codec);
+char *ast_codec2str(int codec);
 
 struct ast_smoother;
 
-extern struct ast_format_list *ast_get_format_list_index(int index);
-extern struct ast_format_list *ast_get_format_list(size_t *size);
-extern struct ast_smoother *ast_smoother_new(int bytes);
-extern void ast_smoother_set_flags(struct ast_smoother *smoother, int flags);
-extern int ast_smoother_get_flags(struct ast_smoother *smoother);
-extern void ast_smoother_free(struct ast_smoother *s);
-extern void ast_smoother_reset(struct ast_smoother *s, int bytes);
-extern int __ast_smoother_feed(struct ast_smoother *s, struct ast_frame *f, int swap);
-extern struct ast_frame *ast_smoother_read(struct ast_smoother *s);
+struct ast_format_list *ast_get_format_list_index(int index);
+struct ast_format_list *ast_get_format_list(size_t *size);
+struct ast_smoother *ast_smoother_new(int bytes);
+void ast_smoother_set_flags(struct ast_smoother *smoother, int flags);
+int ast_smoother_get_flags(struct ast_smoother *smoother);
+void ast_smoother_free(struct ast_smoother *s);
+void ast_smoother_reset(struct ast_smoother *s, int bytes);
+int __ast_smoother_feed(struct ast_smoother *s, struct ast_frame *f, int swap);
+struct ast_frame *ast_smoother_read(struct ast_smoother *s);
 #define ast_smoother_feed(s,f) __ast_smoother_feed(s, f, 0)
 #if __BYTE_ORDER == __LITTLE_ENDIAN
 #define ast_smoother_feed_be(s,f) __ast_smoother_feed(s, f, 1)
@@ -454,7 +454,7 @@
 #define ast_smoother_feed_le(s,f) __ast_smoother_feed(s, f, 1)
 #endif
 
-extern void ast_frame_dump(const char *name, struct ast_frame *f, char *prefix);
+void ast_frame_dump(const char *name, struct ast_frame *f, char *prefix);
 
 /*! \par AudioCodecPref Audio Codec Preferences
 	In order to negotiate audio codecs in the order they are configured
@@ -470,43 +470,43 @@
 */
 
 /*! \brief Initialize an audio codec preference to "no preference" See \ref AudioCodecPref */
-extern void ast_codec_pref_init(struct ast_codec_pref *pref);
+void ast_codec_pref_init(struct ast_codec_pref *pref);
 
 /*! \brief Codec located at a particular place in the preference index See \ref AudioCodecPref */
-extern int ast_codec_pref_index(struct ast_codec_pref *pref, int index);
+int ast_codec_pref_index(struct ast_codec_pref *pref, int index);
 
 /*! \brief Remove audio a codec from a preference list */
-extern void ast_codec_pref_remove(struct ast_codec_pref *pref, int format);
+void ast_codec_pref_remove(struct ast_codec_pref *pref, int format);
 
 /*! \brief Append a audio codec to a preference list, removing it first if it was already there 
 */
-extern int ast_codec_pref_append(struct ast_codec_pref *pref, int format);
+int ast_codec_pref_append(struct ast_codec_pref *pref, int format);
 
 /*! \brief Select the best audio format according to preference list from supplied options. 
    If "find_best" is non-zero then if nothing is found, the "Best" format of 
    the format list is selected, otherwise 0 is returned. */
-extern int ast_codec_choose(struct ast_codec_pref *pref, int formats, int find_best);
+int ast_codec_choose(struct ast_codec_pref *pref, int formats, int find_best);
 
 /*! \brief Parse an "allow" or "deny" line in a channel or device configuration 
         and update the capabilities mask and pref if provided.
 	Video codecs are not added to codec preference lists, since we can not transcode
  */
-extern void ast_parse_allow_disallow(struct ast_codec_pref *pref, int *mask, const char *list, int allowing);
+void ast_parse_allow_disallow(struct ast_codec_pref *pref, int *mask, const char *list, int allowing);
 
 /*! \brief Dump audio codec preference list into a string */
-extern int ast_codec_pref_string(struct ast_codec_pref *pref, char *buf, size_t size);
+int ast_codec_pref_string(struct ast_codec_pref *pref, char *buf, size_t size);
 
 /*! \brief Shift an audio codec preference list up or down 65 bytes so that it becomes an ASCII string */
-extern void ast_codec_pref_convert(struct ast_codec_pref *pref, char *buf, size_t size, int right);
+void ast_codec_pref_convert(struct ast_codec_pref *pref, char *buf, size_t size, int right);
 
 /*! \brief Returns the number of samples contained in the frame */
-extern int ast_codec_get_samples(struct ast_frame *f);
+int ast_codec_get_samples(struct ast_frame *f);
 
 /*! \brief Returns the number of bytes for the number of samples of the given format */
-extern int ast_codec_get_len(int format, int samples);
+int ast_codec_get_len(int format, int samples);
 
 /*! \brief Appends a frame to the end of a list of frames, truncating the maximum length of the list */
-extern struct ast_frame *ast_frame_enqueue(struct ast_frame *head, struct ast_frame *f, int maxlen, int dupe);
+struct ast_frame *ast_frame_enqueue(struct ast_frame *head, struct ast_frame *f, int maxlen, int dupe);
 
 
 /*! \brief Gets duration in ms of interpolation frame for a format */

Modified: trunk/include/asterisk/ulaw.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/ulaw.h?rev=32349&r1=32348&r2=32349&view=diff
==============================================================================
--- trunk/include/asterisk/ulaw.h (original)
+++ trunk/include/asterisk/ulaw.h Mon Jun  5 13:05:53 2006
@@ -27,7 +27,7 @@
 /*!
  * To init the ulaw to slinear conversion stuff, this needs to be run.
  */
-extern void ast_ulaw_init(void);
+void ast_ulaw_init(void);
 
 /*! converts signed linear to mulaw */
 /*!



More information about the svn-commits mailing list