]> sigrok.org Git - libsigrok.git/commitdiff
trigger: Rename sr_trigger_stage_new() to sr_trigger_stage_add().
authorBert Vermeulen <redacted>
Sat, 31 May 2014 08:34:56 +0000 (10:34 +0200)
committerBert Vermeulen <redacted>
Sat, 31 May 2014 08:34:56 +0000 (10:34 +0200)
proto.h
trigger.c

diff --git a/proto.h b/proto.h
index 668192dcf64f5b8bfc3ef276aa1c42e9e60a1383..23d415b4e79ffe2e5afffda74bf9095f092954d3 100644 (file)
--- 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);
 
index 0bc8527d51db8469835f7270b7d1b9e84616b295..d3886e6fbd4249c1390a2dd838d30ef411416a49 100644 (file)
--- 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;