[Asterisk-cvs] asterisk/apps app_skel.c,1.1.1.1,1.2

jeremy at lists.digium.com jeremy at lists.digium.com
Tue Nov 11 01:30:00 CST 2003


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv29035

Modified Files:
	app_skel.c 
Log Message:
call ast_register_application properly


Index: app_skel.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_skel.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- app_skel.c	12 Feb 2003 13:59:14 -0000	1.1.1.1
+++ app_skel.c	11 Nov 2003 07:56:13 -0000	1.2
@@ -20,16 +20,16 @@
 #include <unistd.h>
 #include <string.h>
 #include <stdlib.h>
-
 #include <pthread.h>
 
-
 static char *tdesc = "Trivial skeleton Application";
-
 static char *app = "skel";
+static char *synopsis = 
+"  This is a skeleton application that shows you the basic structure to create your\n"
+"own asterisk applications.\n";
 
 STANDARD_LOCAL_USER;
-
+
 LOCAL_USER_DECL;
 
 static int skel_exec(struct ast_channel *chan, void *data)
@@ -54,7 +54,7 @@
 
 int load_module(void)
 {
-	return ast_register_application(app, skel_exec);
+	return ast_register_application(app, skel_exec, synopsis, tdesc);
 }
 
 char *description(void)




More information about the svn-commits mailing list