diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-05-22 19:52:30 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-07-03 16:08:55 +0200 |
commit | 5701f9185b9b699cb99c3deef7d527a23bd8aaf7 (patch) | |
tree | fca4b52475c4018f18fe42dfea1e369bb475eb87 | |
parent | 70f7423f74290c0ba40910ddb57d7c4962b5f0df (diff) |
qmi-codegen: use constant strings in interface
-rw-r--r-- | build-aux/qmi-codegen/FieldString.py | 1 | ||||
-rw-r--r-- | cli/qmicli-dms.c | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/build-aux/qmi-codegen/FieldString.py b/build-aux/qmi-codegen/FieldString.py index 3dc8a97..10bb54a 100644 --- a/build-aux/qmi-codegen/FieldString.py +++ b/build-aux/qmi-codegen/FieldString.py @@ -35,6 +35,7 @@ class FieldString(Field): # The field type will be the given string name self.field_type = 'gchar *' + self.public_field_type = 'const gchar *' # The string needs to get disposed self.dispose = 'g_free' # The string needs to be copied when set diff --git a/cli/qmicli-dms.c b/cli/qmicli-dms.c index c79425f..815b142 100644 --- a/cli/qmicli-dms.c +++ b/cli/qmicli-dms.c @@ -119,9 +119,9 @@ static void get_ids_ready (QmiClientDms *client, GAsyncResult *res) { - gchar *esn = NULL; - gchar *imei = NULL; - gchar *meid = NULL; + const gchar *esn = NULL; + const gchar *imei = NULL; + const gchar *meid = NULL; QmiMessageDmsGetIdsOutput *output; GError *error = NULL; |