summaryrefslogtreecommitdiff
path: root/common/gmountspec.c
Commit message (Collapse)AuthorAgeFilesLines
* gdbus: Core daemon and client portTomas Bzatek2012-07-311-78/+28
| | | | | | | | | | | Port of most of the gvfs core, few bits still missing. Lot of debug prints around, will be removed in further commits. Same amount of TODOs and FIXMEs. Notes: * kill serials? * get rid of mainloops where applicable (copy/move progress callback, enumerator) * fix keyring integration * use gdbus builtin fd passing within gvfsdaemon.c, kill the extra_fd stuff
* Update the Address of the FSFFelix Möller2012-07-301-2/+2
| | | | | | | | | | | | | | | Updating the address of the FSF. This has been done by: while read file; do sed -i 's:59 Temple Place:51 Franklin Street:' $file sed -i 's:Suite 330:Fifth Floor:' $file sed -i 's:02111-1307:02110-1301:' $file done https://bugzilla.gnome.org/show_bug.cgi?id=656598 Signed-off-by: Tomas Bzatek <tbzatek@redhat.com>
* Rename gdbusutils.h to avoid conflict with GIO1.6.2Matthias Clasen2010-05-271-1/+1
| | | | This makes gvfs build with recent glib again, see bug #619537
* Fix creating mount_spec from stringTomas Bzatek2009-10-081-1/+1
| | | | Don't consume the ending character.
* Canonicalize mount prefix to prevent mountspec matching issuesTomas Bzatek2009-08-181-2/+2
| | | | | | | This prevents mismatches during mount spec comparation, e.g. with trailing slash in mount_prefix ("/subdir" vs. "/subdir/"). See bug 590730 for details.
* Remove spew from gmountspec changesAlexander Larsson2009-06-251-1/+0
|
* Make g_mount_spec_to_string generate a "nicer" stringAlexander Larsson2009-06-251-26/+38
| | | | | We'll be showing this of publically as the id of metadata databases, so it better be somewhat shorter and nicer.
* Patch from David ZeuthenAlexander Larsson2008-10-211-2/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-10-21 Alexander Larsson <alexl@redhat.com> Patch from David Zeuthen * common/Makefile.am: * common/gvfsicon.[ch]: Added GVfsIcon object for GVfs backend specific icons. * common/gmountspec.[ch]: Make sure to/from string works correctly to roundtrip GMountSpec:s Make GMountSpec a boxed type * common/gvfsdaemonprotocol.h: Add OpenIconForRead operation * client/Makefile.am: * client/gvfsiconloadable.[ch]: In gvfs client side, implement GLoadableIcon for GVfsIcon type. * client/gdaemonvfs.c: Make sure that we add the GLoadableIcon interface for GVfsIcon on load * daemon/Makefile.am: * daemon/gvfsbackend.[ch]: * daemon/gvfsjobopeniconforread.[ch]: Add new job type for OpenIconForRead op * daemon/gvfsbackendgphoto2.c: Implement OpenIconForRead for icon previews. svn path=/trunk/; revision=2070
* Plug a tiny memory leakMatthias Clasen2008-08-301-0/+1
| | | | svn path=/trunk/; revision=1919
* Don't allow setting a null parameter in mountspec (coming from broken backend)Tomas Bzatek2008-05-271-0/+3
| | | | svn path=/trunk/; revision=1788
* add g_return_if_fail here - I had SEGVs sometime later due to values beingBenjamin Otte2008-03-041-0/+3
| | | | | | | | | | | 2008-03-04 Benjamin Otte <otte@gnome.org> * common/gmountspec.c: (g_mount_spec_set_with_len): add g_return_if_fail here - I had SEGVs sometime later due to values being NULL here. So better catch em early svn path=/trunk/; revision=1545
* Fix memory leaks.Carlos Garcia Campos2008-03-041-1/+1
| | | | | | | | | | | 2008-03-04 Carlos Garcia Campos <carlosgc@gnome.org> * common/gmountspec.c: (g_mount_spec_copy): * daemon/gvfsdaemon.c: (g_vfs_daemon_initiate_mount): * daemon/main.c: (main): Fix memory leaks. svn path=/trunk/; revision=1519
* Add shared path canonicalization: g_mount_spec_canonicalize_path()Alexander Larsson2008-01-311-0/+60
| | | | | | | | | | | 2008-01-31 Alexander Larsson <alexl@redhat.com> * common/gmountspec.[ch]: Add shared path canonicalization: g_mount_spec_canonicalize_path() svn path=/trunk/; revision=1213
* Ensure that mount_prefix is never NULL. It should be "/" in that case.Alexander Larsson2008-01-181-1/+5
| | | | | | | | | | | | 2008-01-18 Alexander Larsson <alexl@redhat.com> * common/gmountspec.c: (g_mount_spec_new_from_data): Ensure that mount_prefix is never NULL. It should be "/" in that case. svn path=/trunk/; revision=1151
* Add new functionsAlexander Larsson2007-11-121-6/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-11-12 Alexander Larsson <alexl@redhat.com> * common/gmountspec.[ch]: (g_mount_spec_new_from_data): (g_mount_spec_set_with_len): Add new functions * client/Makefile.am: * common/Makefile.am: Update for moved files Build non-shared version of common libs. Ups non-shared common libs in client module. * common/gvfsuriutils.[ch]: Removed. * client/gvfsuriutils.[ch]: Added. Moved uriutils to gvfs (not used by daemon) Re-namespace to g_vfs_* * common/gvfsurimapper.[ch]: Removed. * client/gvfsurimapper.[ch]: Added. Move UriMapper to client lib Remove/Hide use of GMountSpec * client/gdaemonvfs.c: * client/smburi.c: Update to the new APIs * client/gvfsfusedaemon.c: * daemon/gvfsbackendtrash.c: * daemon/gvfsjobqueryfsinfo.c: Fix warnings svn path=/trunk/; revision=1020
* Add copyright information to source files.Christian Kellner2007-11-011-0/+22
| | | | | | | | | | | | 2007-11-01 Christian Kellner <gicmo@gnome.org> * client/*.[ch]: * common/*.[ch]: * daemon/*.[ch]: * test/*.[ch]: Add copyright information to source files. svn path=/trunk/; revision=1007
* Actually assign the mount_prefix in the GMountSpecAlexander Larsson2007-10-241-1/+1
| | | | | | | | | | | | 2007-10-24 Alexander Larsson <alexl@redhat.com> * common/gmountspec.c: (g_mount_spec_set_mount_prefix): Actually assign the mount_prefix in the GMountSpec svn path=/trunk/; revision=992
* Ensure GDaemonFile mount specs are actually unique. When a non-uniqueAlexander Larsson2007-10-231-2/+7
| | | | | | | | | | | | | | 2007-10-23 Alexander Larsson <alexl@redhat.com> * client/gdaemonfile.c: * client/gdaemonvfs.c: * common/gmountspec.[ch]: Ensure GDaemonFile mount specs are actually unique. When a non-unique mount spec was finalized any unique version of the same was removed from the hashtable. svn path=/trunk/; revision=990
* Don't pass the contained signature when creating a DBus struct. Since DBusSebastian Dröge2007-09-251-2/+2
| | | | | | | | | | | | * common/gmountspec.c: (g_mount_spec_to_dbus_with_path): * common/gvfsdaemonprotocol.c: (_g_dbus_append_file_attribute), (_g_dbus_append_file_info), (_g_dbus_append_attribute_info_list): * daemon/mount.c: (vfs_mount_to_dbus): Don't pass the contained signature when creating a DBus struct. Since DBus 1.1.0 this will lead to an assertion. The signature will filled automatically while adding values to the struct. svn path=/trunk/; revision=956
* Add g_mount_spec_get_unique_forAlexander Larsson2007-09-131-0/+33
| | | | | | Original git commit by Alexander Larsson <alexl@redhat.com> at 1188216947 +0200 svn path=/trunk/; revision=814
* Finish implementing daemon version of file_mount_mountableAlexander Larsson2007-09-131-3/+27
| | | | | | Original git commit by Alexander Larsson <alexl@redhat.com> at 1178897311 +0200 svn path=/trunk/; revision=560
* Add g_mount_spec_equal and g_mount_spec_hashAlexander Larsson2007-09-131-0/+30
| | | | | | Original git commit by Alexander Larsson <alex@greebo.(none)> at 1173803643 +0100 svn path=/trunk/; revision=391
* Add g_mount_spec_copy and g_mount_spec_set_mount_prefixAlexander Larsson2007-09-131-0/+27
| | | | | | Original git commit by Alexander Larsson <alex@greebo.(none)> at 1171469188 +0100 svn path=/trunk/; revision=346
* Add g_mount_spec_set_with_lenAlexander Larsson2007-09-131-4/+19
| | | | | | Original git commit by Alexander Larsson <alex@greebo.(none)> at 1171365947 +0100 svn path=/trunk/; revision=335
* Make g_mount_spec_set handle setting an already set keyAlexander Larsson2007-09-131-0/+13
| | | | | | Original git commit by Alexander Larsson <alex@greebo.(none)> at 1171013571 +0100 svn path=/trunk/; revision=309
* More work on mounting. Automount of smb now works (test).Alexander Larsson2007-09-131-6/+14
| | | | | | Original git commit by Alexander Larsson <alex@greebo.(none)> at 1170415025 +0100 svn path=/trunk/; revision=296
* Add g_mount_spec_get_typeAlexander Larsson2007-09-131-0/+16
| | | | | | Original git commit by Alexander Larsson <alex@greebo.(none)> at 1170341921 +0100 svn path=/trunk/; revision=292
* Initial client side work for new mount trackerAlexander Larsson2007-09-131-7/+24
| | | | | | Original git commit by Alexander Larsson <alex@greebo.(none)> at 1170091175 +0100 svn path=/trunk/; revision=277
* Add type arg to g_mount_spec_newAlexander Larsson2007-09-131-2/+5
| | | | | | Original git commit by Alexander Larsson <alex@greebo.(none)> at 1170078894 +0100 svn path=/trunk/; revision=276
* Make GMountSpec refcountedAlexander Larsson2007-09-131-11/+21
| | | | | | Original git commit by Alexander Larsson <alex@greebo.(none)> at 1170078223 +0100 svn path=/trunk/; revision=275
* Add g_mount_spec_matchAlexander Larsson2007-09-131-19/+62
| | | | | | | | Export dbus types Original git commit by Alexander Larsson <alex@greebo.(none)> at 1170070729 +0100 svn path=/trunk/; revision=272
* Starting to work on actually registering the backends as mountedAlexander Larsson2007-09-131-0/+180
Original git commit by Alexander Larsson <alex@greebo.(none)> at 1169826631 +0100 svn path=/trunk/; revision=269