]> sigrok.org Git - libsigrok.git/blobdiff - sigrok.h
Constify some more 'char *' parameters.
[libsigrok.git] / sigrok.h
index 81709b3e6989536a78bd99780d4d56a53b2e7ee8..ba571c2c79eeb4ca23f2e99b34de93856890d51f 100644 (file)
--- a/sigrok.h
+++ b/sigrok.h
@@ -157,8 +157,8 @@ struct sr_output_format {
        char *description;
        int df_type;
        int (*init) (struct sr_output *o);
-       int (*data) (struct sr_output *o, char *data_in, uint64_t length_in,
-                    char **data_out, uint64_t *length_out);
+       int (*data) (struct sr_output *o, const char *data_in,
+                    uint64_t length_in, char **data_out, uint64_t *length_out);
        int (*event) (struct sr_output *o, int event_type, char **data_out,
                      uint64_t *length_out);
 };
@@ -326,7 +326,7 @@ struct sr_device_plugin {
        char *name;
        char *longname;
        int api_version;
-       int (*init) (char *deviceinfo);
+       int (*init) (const char *deviceinfo);
        void (*cleanup) (void);
 
        /* Device-specific */