trigger: Rename sr_trigger_stage_new() to sr_trigger_stage_add().

This commit is contained in:
Bert Vermeulen 2014-05-31 10:34:56 +02:00
parent d292f767bd
commit a153d6b8ff
2 changed files with 2 additions and 2 deletions

View File

@ -133,7 +133,7 @@ SR_API int sr_output_free(struct sr_output *o);
SR_API struct sr_trigger *sr_trigger_new(char *name); SR_API struct sr_trigger *sr_trigger_new(char *name);
SR_API void sr_trigger_free(struct sr_trigger *trig); SR_API void sr_trigger_free(struct sr_trigger *trig);
SR_API struct sr_trigger_stage *sr_trigger_stage_new(struct sr_trigger *trig); SR_API struct sr_trigger_stage *sr_trigger_stage_add(struct sr_trigger *trig);
SR_API int sr_trigger_match_add(struct sr_trigger_stage *stage, SR_API int sr_trigger_match_add(struct sr_trigger_stage *stage,
struct sr_channel *ch, int trigger_match, float value); struct sr_channel *ch, int trigger_match, float value);

View File

@ -50,7 +50,7 @@ SR_API void sr_trigger_free(struct sr_trigger *trig)
g_free(trig); g_free(trig);
} }
SR_API struct sr_trigger_stage *sr_trigger_stage_new(struct sr_trigger *trig) SR_API struct sr_trigger_stage *sr_trigger_stage_add(struct sr_trigger *trig)
{ {
struct sr_trigger_stage *stage; struct sr_trigger_stage *stage;