snippet: Add a 'replace' string

If present, the 'replace' string will be used instead of whatever code
would normally be invoked for that hook point. It will also replace
any previous snippets.

Reviewed-by: Robert Bragg <robert@linux.intel.com>
This commit is contained in:
Neil Roberts
2011-11-25 14:36:31 +00:00
committed by Robert Bragg
parent 0fdd5690c6
commit 717e96b304
7 changed files with 110 additions and 4 deletions

View File

@ -44,6 +44,7 @@ struct _CoglSnippet
char *declarations;
char *pre;
char *replace;
char *post;
};