From: Bert Vermeulen Date: Sat, 31 May 2014 08:34:56 +0000 (+0200) Subject: trigger: Rename sr_trigger_stage_new() to sr_trigger_stage_add(). X-Git-Tag: libsigrok-0.4.0~1291 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=a153d6b8fffa6e1e1a88c8d52bee0aec86add91e;p=libsigrok.git trigger: Rename sr_trigger_stage_new() to sr_trigger_stage_add(). --- diff --git a/proto.h b/proto.h index 668192dc..23d415b4 100644 --- a/proto.h +++ b/proto.h @@ -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 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, struct sr_channel *ch, int trigger_match, float value); diff --git a/trigger.c b/trigger.c index 0bc8527d..d3886e6f 100644 --- a/trigger.c +++ b/trigger.c @@ -50,7 +50,7 @@ SR_API void sr_trigger_free(struct sr_trigger *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;