]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Change a couple of header files to not use "new", which is a reserved keyword
authorRussell Bryant <russell@russellbryant.com>
Thu, 31 May 2007 18:41:58 +0000 (18:41 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 31 May 2007 18:41:58 +0000 (18:41 +0000)
in C++.  (issue #9830, reported by osk)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66775 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/app.h
include/asterisk/speech.h
res/res_speech.c

index 1c6dca0e7ae55b71511f1ea140869d96df3df4ad..fc0536e06602b2167db6a01bb80a24443b663282 100644 (file)
@@ -226,7 +226,7 @@ int ast_app_group_match_get_count(const char *groupmatch, const char *category);
 int ast_app_group_discard(struct ast_channel *chan);
 
 /*! Update all group counting for a channel to a new one */
-int ast_app_group_update(struct ast_channel *old, struct ast_channel *new);
+int ast_app_group_update(struct ast_channel *oldchan, struct ast_channel *newchan);
 
 /*! Lock the group count list */
 int ast_app_group_list_lock(void);
index 09d08ddb12ea1bef1add138b1796bf3c884e4c51..3af01e614d07c4e99911532f50a0e16fef7142bd 100644 (file)
@@ -69,7 +69,7 @@ struct ast_speech_engine {
        /*! Name of speech engine */
        char *name;
        /*! Set up the speech structure within the engine */
-       int (*new)(struct ast_speech *speech);
+       int (*create)(struct ast_speech *speech);
        /*! Destroy any data set on the speech structure by the engine */
        int (*destroy)(struct ast_speech *speech);
        /*! Load a local grammar on the speech structure */
index 419c6086e4b2dd064f0bbeaf2119ce89e351f09c..16673538bcda27ef750072800d616394fbf02adb 100644 (file)
@@ -237,7 +237,7 @@ struct ast_speech *ast_speech_new(char *engine_name, int format)
        ast_speech_change_state(new_speech, AST_SPEECH_STATE_NOT_READY);
 
        /* Pass ourselves to the engine so they can set us up some more and if they error out then do not create a structure */
-       if (engine->new(new_speech)) {
+       if (engine->create(new_speech)) {
                ast_mutex_destroy(&new_speech->lock);
                free(new_speech);
                new_speech = NULL;