[svn-commits] kpfleming: trunk r89482 - in /trunk: include/ include/asterisk/ utils/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Nov 21 10:07:11 CST 2007


Author: kpfleming
Date: Wed Nov 21 10:07:11 2007
New Revision: 89482

URL: http://svn.digium.com/view/asterisk?view=rev&rev=89482
Log:
move these forward declarations back to asterisk.h where they belong... even though asterisk.h includes compat.h, these declarations have nothing to do with the being platform-compatible and are directly related to being part of Asterisk

Modified:
    trunk/include/asterisk.h
    trunk/include/asterisk/compat.h
    trunk/utils/ael_main.c
    trunk/utils/conf2ael.c

Modified: trunk/include/asterisk.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk.h?view=diff&rev=89482&r1=89481&r2=89482
==============================================================================
--- trunk/include/asterisk.h (original)
+++ trunk/include/asterisk.h Wed Nov 21 10:07:11 2007
@@ -162,4 +162,14 @@
 #define ast_mark(a, b) do { } while (0)
 #endif /* LOW_MEMORY */
 
+/*! \brief
+ * Definition of various structures that many asterisk files need,
+ * but only because they need to know that the type exists.
+ *
+ */
+
+struct ast_channel;
+struct ast_frame;
+struct ast_module;
+
 #endif /* _ASTERISK_H */

Modified: trunk/include/asterisk/compat.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/compat.h?view=diff&rev=89482&r1=89481&r2=89482
==============================================================================
--- trunk/include/asterisk/compat.h (original)
+++ trunk/include/asterisk/compat.h Wed Nov 21 10:07:11 2007
@@ -180,14 +180,4 @@
 typedef unsigned long long uint64_t;
 #endif
 
-/*! \brief
- * Definition of various structures that many asterisk files need,
- * but only because they need to know that the type exists.
- *
- * We can move them to a different global header if necessary.
- */
-struct ast_channel;
-struct ast_frame;
-struct ast_module;
-
 #endif

Modified: trunk/utils/ael_main.c
URL: http://svn.digium.com/view/asterisk/trunk/utils/ael_main.c?view=diff&rev=89482&r1=89481&r2=89482
==============================================================================
--- trunk/utils/ael_main.c (original)
+++ trunk/utils/ael_main.c Wed Nov 21 10:07:11 2007
@@ -4,7 +4,7 @@
 #include <regex.h>
 #include <limits.h>
 
-#include "asterisk/compat.h"
+#include "asterisk.h"
 #include "asterisk/channel.h"
 #include "asterisk/ast_expr.h"
 #include "asterisk/module.h"
@@ -75,10 +75,7 @@
 char ast_config_AST_CONFIG_DIR[PATH_MAX];
 char ast_config_AST_VAR_DIR[PATH_MAX];
 
-void ast_add_profile(void);
 void ast_cli_register_multiple(void);
-void ast_register_file_version(void);
-void ast_unregister_file_version(void);
 int ast_add_extension2(struct ast_context *con,
 					   int replace, const char *extension, int priority, const char *label, const char *callerid,
 						const char *application, void *data, void (*datad)(void *),
@@ -155,11 +152,20 @@
 	return 0; /* in "standalone" mode, functions are just not avail */
 }
 
-
-void ast_add_profile(void)
+void ast_register_file_version(const char *file, const char *version)
+{
+}
+
+void ast_unregister_file_version(const char *file)
+{
+}
+
+int ast_add_profile(const char *x, uint64_t scale)
 {
 	if (!no_comp)
 		printf("Executed ast_add_profile();\n");
+
+	return 0;
 }
 
 int ast_loader_register(int (*updater)(void))
@@ -186,20 +192,6 @@
         	printf("Executed ast_cli_register_multiple();\n");
 }
 
-void ast_register_file_version(void)
-{
-	/* if(!no_comp)
-		printf("Executed ast_register_file_version();\n"); */
-	/* I'm erasing this, because I don't think anyone really ever needs to see it anyway */
-}
-
-void ast_unregister_file_version(void)
-{
-	/* if(!no_comp)
-		printf("Executed ast_unregister_file_version();\n"); */
-	/* I'm erasing this, because I don't think anyone really ever needs to see it anyway */
-
-}
 void pbx_substitute_variables_helper(struct ast_channel *c,const char *cp1,char *cp2,int count);
 void pbx_substitute_variables_helper(struct ast_channel *c,const char *cp1,char *cp2,int count)
 {

Modified: trunk/utils/conf2ael.c
URL: http://svn.digium.com/view/asterisk/trunk/utils/conf2ael.c?view=diff&rev=89482&r1=89481&r2=89482
==============================================================================
--- trunk/utils/conf2ael.c (original)
+++ trunk/utils/conf2ael.c Wed Nov 21 10:07:11 2007
@@ -42,7 +42,7 @@
 #include <regex.h>
 #include <limits.h>
 
-#include "asterisk/compat.h"
+#include "asterisk.h"
 #include "asterisk/pbx.h"
 #include "asterisk/ast_expr.h"
 #include "asterisk/channel.h"
@@ -80,26 +80,12 @@
 /* static AST_RWLIST_HEAD_STATIC(acf_root, ast_custom_function); */
 extern char ast_config_AST_CONFIG_DIR[PATH_MAX];
 
-/* modulation */
-void ast_add_profile(void);
-void ast_register_file_version(void);
-void ast_unregister_file_version(void);
-
-void ast_add_profile(void)
-{
-}
-void ast_register_file_version(void)
-{
-	/* if(!no_comp)
-	   printf("Executed ast_register_file_version();\n"); */
-	/* I'm erasing this, because I don't think anyone really ever needs to see it anyway */
-}
-
-void ast_unregister_file_version(void)
-{
-	/* if(!no_comp)
-		printf("Executed ast_unregister_file_version();\n"); */
-	/* I'm erasing this, because I don't think anyone really ever needs to see it anyway */
+void ast_register_file_version(const char *file, const char *version)
+{
+}
+
+void ast_unregister_file_version(const char *file)
+{
 }
 
 /* Our own version of ast_log, since the expr parser uses it. -- stolen from utils/check_expr.c */




More information about the svn-commits mailing list