[gnome-multi-writer] trivial: Add some constification
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-multi-writer] trivial: Add some constification
- Date: Wed, 21 Jan 2015 20:10:52 +0000 (UTC)
commit cad7e89af0a93d1d8e1dc50a584443177b05654f
Author: Richard Hughes <richard hughsie com>
Date: Wed Jan 21 17:20:43 2015 +0000
trivial: Add some constification
src/gmw-device.c | 16 ++++++++--------
src/gmw-device.h | 16 ++++++++--------
2 files changed, 16 insertions(+), 16 deletions(-)
---
diff --git a/src/gmw-device.c b/src/gmw-device.c
index 1529a6d..2cff80a 100644
--- a/src/gmw-device.c
+++ b/src/gmw-device.c
@@ -74,7 +74,7 @@ gmw_device_get_udisks_block (GmwDevice *device)
/**
* gmw_device_get_name:
**/
-gchar *
+const gchar *
gmw_device_get_name (GmwDevice *device)
{
GmwDevicePrivate *priv = gmw_device_get_instance_private (device);
@@ -85,7 +85,7 @@ gmw_device_get_name (GmwDevice *device)
/**
* gmw_device_get_block_path:
**/
-gchar *
+const gchar *
gmw_device_get_block_path (GmwDevice *device)
{
GmwDevicePrivate *priv = gmw_device_get_instance_private (device);
@@ -96,7 +96,7 @@ gmw_device_get_block_path (GmwDevice *device)
/**
* gmw_device_get_hub_label:
**/
-gchar *
+const gchar *
gmw_device_get_hub_label (GmwDevice *device)
{
GmwDevicePrivate *priv = gmw_device_get_instance_private (device);
@@ -107,7 +107,7 @@ gmw_device_get_hub_label (GmwDevice *device)
/**
* gmw_device_get_hub_id:
**/
-gchar *
+const gchar *
gmw_device_get_hub_id (GmwDevice *device)
{
GmwDevicePrivate *priv = gmw_device_get_instance_private (device);
@@ -129,7 +129,7 @@ gmw_device_get_hub_root (GmwDevice *device)
/**
* gmw_device_get_object_path:
**/
-gchar *
+const gchar *
gmw_device_get_object_path (GmwDevice *device)
{
GmwDevicePrivate *priv = gmw_device_get_instance_private (device);
@@ -140,7 +140,7 @@ gmw_device_get_object_path (GmwDevice *device)
/**
* gmw_device_get_order_display:
**/
-gchar *
+const gchar *
gmw_device_get_order_display (GmwDevice *device)
{
GmwDevicePrivate *priv = gmw_device_get_instance_private (device);
@@ -156,7 +156,7 @@ gmw_device_get_order_display (GmwDevice *device)
/**
* gmw_device_get_order_process:
**/
-gchar *
+const gchar *
gmw_device_get_order_process (GmwDevice *device)
{
GmwDevicePrivate *priv = gmw_device_get_instance_private (device);
@@ -169,7 +169,7 @@ gmw_device_get_order_process (GmwDevice *device)
/**
* gmw_device_get_sysfs_path:
**/
-gchar *
+const gchar *
gmw_device_get_sysfs_path (GmwDevice *device)
{
GmwDevicePrivate *priv = gmw_device_get_instance_private (device);
diff --git a/src/gmw-device.h b/src/gmw-device.h
index 21548f1..97ead04 100644
--- a/src/gmw-device.h
+++ b/src/gmw-device.h
@@ -59,15 +59,15 @@ const gchar *gmw_device_get_icon (GmwDevice *device);
gchar *gmw_device_get_description (GmwDevice *device);
GmwDeviceState gmw_device_get_state (GmwDevice *device);
UDisksBlock *gmw_device_get_udisks_block (GmwDevice *device);
-gchar *gmw_device_get_name (GmwDevice *device);
-gchar *gmw_device_get_block_path (GmwDevice *device);
-gchar *gmw_device_get_hub_label (GmwDevice *device);
-gchar *gmw_device_get_hub_id (GmwDevice *device);
+const gchar *gmw_device_get_name (GmwDevice *device);
+const gchar *gmw_device_get_block_path (GmwDevice *device);
+const gchar *gmw_device_get_hub_label (GmwDevice *device);
+const gchar *gmw_device_get_hub_id (GmwDevice *device);
guint8 gmw_device_get_hub_root (GmwDevice *device);
-gchar *gmw_device_get_object_path (GmwDevice *device);
-gchar *gmw_device_get_order_display (GmwDevice *device);
-gchar *gmw_device_get_order_process (GmwDevice *device);
-gchar *gmw_device_get_sysfs_path (GmwDevice *device);
+const gchar *gmw_device_get_object_path (GmwDevice *device);
+const gchar *gmw_device_get_order_display (GmwDevice *device);
+const gchar *gmw_device_get_order_process (GmwDevice *device);
+const gchar *gmw_device_get_sysfs_path (GmwDevice *device);
gdouble gmw_device_get_complete (GmwDevice *device);
gdouble gmw_device_get_speed_write (GmwDevice *device);
gdouble gmw_device_get_speed_read (GmwDevice *device);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]