summaryrefslogtreecommitdiff
path: root/monitor
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2012-08-05 21:06:23 -0700
committerPhilip Langdale <philipl@overt.org>2013-01-11 20:30:01 -0800
commit43e7c902d762a3930200124dd6f4b521151d1b5b (patch)
treee00b561a41452934add16e4c6b3d17e5a8d3282c /monitor
parentfda46e82fe9f16ab7d8b2265c22bbca27ed930cd (diff)
downloadgvfs-43e7c902d762a3930200124dd6f4b521151d1b5b.tar.gz
MTP: Tidy up.
Diffstat (limited to 'monitor')
-rw-r--r--monitor/mtp/gmtpvolume.c8
-rw-r--r--monitor/mtp/gmtpvolume.h21
-rw-r--r--monitor/mtp/gmtpvolumemonitor.c8
-rw-r--r--monitor/mtp/gmtpvolumemonitor.h11
-rw-r--r--monitor/mtp/mtp-volume-monitor-daemon.c9
5 files changed, 25 insertions, 32 deletions
diff --git a/monitor/mtp/gmtpvolume.c b/monitor/mtp/gmtpvolume.c
index 2bb87aa6..0c9fbd35 100644
--- a/monitor/mtp/gmtpvolume.c
+++ b/monitor/mtp/gmtpvolume.c
@@ -1,7 +1,9 @@
-/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
/* GIO - GLib Input, Output and Streaming Library
+ * Volume Monitor for MTP Backend
*
- * Copyright (C) 2006-2007 Red Hat, Inc.
+ * Copyright (C) 2012 Philip Langdale <philipl@overt.org>
+ * - Based on ggphoto2volume.c
+ * - Copyright (C) 2006-2007 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -17,8 +19,6 @@
* Public License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
- *
- * Author: David Zeuthen <davidz@redhat.com>
*/
#include <config.h>
diff --git a/monitor/mtp/gmtpvolume.h b/monitor/mtp/gmtpvolume.h
index 5c2ea821..304dd1b7 100644
--- a/monitor/mtp/gmtpvolume.h
+++ b/monitor/mtp/gmtpvolume.h
@@ -1,6 +1,7 @@
/* GIO - GLib Input, Output and Streaming Library
- *
- * Copyright (C) 2006-2007 Red Hat, Inc.
+ * Volume Monitor for MTP Backend
+ *
+ * Copyright (C) 2012 Philip Langdale <philipl@overt.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -16,8 +17,6 @@
* Public License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
- *
- * Author: David Zeuthen <davidz@redhat.com>
*/
#ifndef __G_MTP_VOLUME_H__
@@ -45,15 +44,15 @@ struct _GMtpVolumeClass {
GType g_mtp_volume_get_type (void) G_GNUC_CONST;
-GMtpVolume *g_mtp_volume_new (GVolumeMonitor *volume_monitor,
- GUdevDevice *device,
- GUdevClient *gudev_client,
- GFile *activation_root);
+GMtpVolume *g_mtp_volume_new (GVolumeMonitor *volume_monitor,
+ GUdevDevice *device,
+ GUdevClient *gudev_client,
+ GFile *activation_root);
-gboolean g_mtp_volume_has_path (GMtpVolume *volume,
- const char *path);
+gboolean g_mtp_volume_has_path (GMtpVolume *volume,
+ const char *path);
-void g_mtp_volume_removed (GMtpVolume *volume);
+void g_mtp_volume_removed (GMtpVolume *volume);
G_END_DECLS
diff --git a/monitor/mtp/gmtpvolumemonitor.c b/monitor/mtp/gmtpvolumemonitor.c
index 04996270..7a5916a5 100644
--- a/monitor/mtp/gmtpvolumemonitor.c
+++ b/monitor/mtp/gmtpvolumemonitor.c
@@ -1,7 +1,9 @@
-/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
/* GIO - GLib Input, Output and Streaming Library
+ * Volume Monitor for MTP Backend
*
- * Copyright (C) 2006-2007 Red Hat, Inc.
+ * Copyright (C) 2012 Philip Langdale <philipl@overt.org>
+ * - Based on ggphoto2volume.c
+ * - Copyright (C) 2006-2007 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -17,8 +19,6 @@
* Public License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
- *
- * Author: David Zeuthen <davidz@redhat.com>
*/
#include <config.h>
diff --git a/monitor/mtp/gmtpvolumemonitor.h b/monitor/mtp/gmtpvolumemonitor.h
index fcf01409..0a36a9b4 100644
--- a/monitor/mtp/gmtpvolumemonitor.h
+++ b/monitor/mtp/gmtpvolumemonitor.h
@@ -1,6 +1,7 @@
/* GIO - GLib Input, Output and Streaming Library
- *
- * Copyright (C) 2006-2007 Red Hat, Inc.
+ * Volume Monitor for MTP Backend
+ *
+ * Copyright (C) 2012 Philip Langdale <philipl@overt.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -16,8 +17,6 @@
* Public License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
- *
- * Author: David Zeuthen <davidz@redhat.com>
*/
#ifndef __G_MTP_VOLUME_MONITOR_H__
@@ -46,8 +45,8 @@ struct _GMtpVolumeMonitorClass {
GType g_mtp_volume_monitor_get_type (void) G_GNUC_CONST;
-GVolumeMonitor *g_mtp_volume_monitor_new (void);
-void g_mtp_volume_monitor_force_update (GMtpVolumeMonitor *monitor);
+GVolumeMonitor *g_mtp_volume_monitor_new (void);
+void g_mtp_volume_monitor_force_update (GMtpVolumeMonitor *monitor);
G_END_DECLS
diff --git a/monitor/mtp/mtp-volume-monitor-daemon.c b/monitor/mtp/mtp-volume-monitor-daemon.c
index 0b61a591..20199409 100644
--- a/monitor/mtp/mtp-volume-monitor-daemon.c
+++ b/monitor/mtp/mtp-volume-monitor-daemon.c
@@ -1,5 +1,5 @@
-/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
-/* gvfs - extensions for gio
+/* GIO - GLib Input, Output and Streaming Library
+ * Volume Monitor for MTP Backend
*
* Copyright (C) 2012 Philip Langdale <philipl@overt.org>
*
@@ -21,11 +21,6 @@
#include <config.h>
-#include <glib.h>
-#include <glib/gi18n-lib.h>
-#include <gmodule.h>
-#include <gio/gio.h>
-
#include <gvfsproxyvolumemonitordaemon.h>
#include "gmtpvolumemonitor.h"