]> sigrok.org Git - libsigrok.git/commitdiff
Change prototype of sr_trigger_new to take const char *.
authorMartin Ling <redacted>
Thu, 17 Jul 2014 17:39:17 +0000 (18:39 +0100)
committerMartin Ling <redacted>
Thu, 17 Jul 2014 17:39:17 +0000 (18:39 +0100)
include/libsigrok/proto.h
trigger.c

index dd4782b55e27fb158d8c3dc23506eeabe36169f8..f11efeda3712572c7719c23ef35bc12f9c39f2a0 100644 (file)
@@ -137,7 +137,7 @@ SR_API int sr_output_free(struct sr_output *o);
 
 /*--- trigger.c -------------------------------------------------------------*/
 
-SR_API struct sr_trigger *sr_trigger_new(char *name);
+SR_API struct sr_trigger *sr_trigger_new(const char *name);
 SR_API void sr_trigger_free(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,
index d3886e6fbd4249c1390a2dd838d30ef411416a49..0783bb2af84dcd395f672ab8e738267b09b42dac 100644 (file)
--- a/trigger.c
+++ b/trigger.c
@@ -24,7 +24,7 @@
 #define LOG_PREFIX "trigger"
 /* * @endcond */
    
-SR_API struct sr_trigger *sr_trigger_new(char *name)
+SR_API struct sr_trigger *sr_trigger_new(const char *name)
 {
        struct sr_trigger *trig;