summaryrefslogtreecommitdiff
path: root/common
AgeCommit message (Collapse)AuthorFilesLines
2012-07-31gdbus: Remove debug printsTomas Bzatek2-18/+0
2012-07-31gdbus: More errors to stripTomas Bzatek1-0/+3
2012-07-31gdbus: Rename common d-bus interface xml fileTomas Bzatek2-3/+3
2012-07-31gdbus: Code style fixesTomas Bzatek1-32/+16
2012-07-31gdbus: Fix case of GDbusAttributeValue structTomas Bzatek2-8/+8
2012-07-31gdbus: Use casting macros where possibleTomas Bzatek2-6/+6
2012-07-31gdbus: Use g_clear_object() where appropriateTomas Bzatek1-7/+3
2012-07-31gdbus: Properly suffix functions doing sync proxy creationTomas Bzatek2-10/+11
...so that they are recognizable on a first sight.
2012-07-31gdbus: Reword GVariant argumentsTomas Bzatek8-42/+42
and kill the iters.
2012-07-31gdbus: gmountoperationdbus.c: Move referenced objects aroundTomas Bzatek1-24/+26
Reorganize saved references for used objects, getting rid of some FIXMEs.
2012-07-31gdbus: Construct proxies without connecting signals and propertiesTomas Bzatek2-2/+2
Use G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS and G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES flags where applicable.
2012-07-31gdbus: Use G_VARIANT_TYPE_HANDLE for fd_id argumentsTomas Bzatek1-3/+3
2012-07-31gdbus: Move annotations to the interface XML fileTomas Bzatek2-6/+3
2012-07-31gdbus: Fix srcdir != builddir and make the build more quietTomas Bzatek1-2/+2
2012-07-31gdbus: Fixup d-bus interface naming styleTomas Bzatek1-18/+18
And conform to usual GNOME naming conventions.
2012-07-31gdbus: Treat empty non-NULL strings for the "ay" type as NULLTomas Bzatek2-1/+8
A fallout of port away from convenient G_DBUS_TYPE_CSTRING type and _g_dbus_message_append_args() + _g_dbus_message_iter_get_args() functions that masked NULL strings as non-NULL empty strings ("") for transferring over d-bus and on the other side reconstructed the original value. Portions of other code treat non-NULL strings differently even if they were empty. This fixes e.g. opening http URLs via gvfs-open.
2012-07-31gdbus: Remove unused daemon protocol definesTomas Bzatek1-106/+0
2012-07-31gdbus: Port the OpenIconForRead operationTomas Bzatek2-0/+5
2012-07-31gdbus: Monitoring portTomas Bzatek1-0/+25
2012-07-31gdbus: Core daemon and client portTomas Bzatek12-1217/+1109
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
2012-07-30Update the Address of the FSFFelix Möller23-46/+46
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>
2012-07-28Fix a comment typoMatthias Clasen1-1/+1
2012-07-13common: add support show-unmount-progress signal to GMountOperationDBusCosimo Cecchi4-0/+116
https://bugzilla.gnome.org/show_bug.cgi?id=676111
2011-11-14Explicitly intialize mutexes on stackTomas Bzatek2-0/+7
Turned out zeroing memory is not enough in some cases so let's be on the safe side and properly initialize all non-static mutexes. Also, don't initialize/clear the static ones.
2011-10-25Adapt to glib mutex API changesTomas Bzatek1-32/+28
A continuation to https://bugzilla.gnome.org/show_bug.cgi?id=661148
2011-10-21Adapt to GLib 2.31 deprecations and thread API changesMatthias Clasen1-29/+14
GStaticMutex and GStaticRWLock have been replaced by GMutex and GRWLock, and g_thread_init() is no longer needed. https://bugzilla.gnome.org/show_bug.cgi?id=661148
2011-10-12Purge hardcoded -DG_DISABLE_DEPRECATEDColin Walters1-1/+1
Especially now that deprecations are proper gcc warnings, no need to hardcode this.
2011-08-22mountsource: Fix leaks of GSimpleAsyncResultCarl-Anton Ingmarsson1-0/+3
https://bugzilla.gnome.org/show_bug.cgi?id=656511
2011-08-15daemon: Remove unused codeTomas Bzatek1-4/+0
2011-05-12New function to re-root a given path with a mount_prefixChristian Kellner2-0/+22
g_mount_info_apply_prefix will take an given path and prepend the mount_prefix of the given mount_info, if there is any. It will free the old string in this case. Otherwise it is a NOOP.
2011-04-08common: Remove unneeded copied header fileBastien Nocera3-57/+1
Turns out the header is properly shipped by libluray.
2011-04-07common: Use libbluray to get Blu-Ray metadataBastien Nocera3-166/+173
This means we can finally get localised versions, and support the biggest thumbnails. https://bugzilla.gnome.org/show_bug.cgi?id=646984
2011-03-17Cleanups and fixes for compiler warningsKjartan Maraas2-5/+2
https://bugzilla.gnome.org/show_bug.cgi?id=641856
2010-09-27Fix stringv transfer over dbusTomas Bzatek1-1/+2
The wrong iterator passed in caused some items to be silently dropped plus it led to string dup of wrong pointer. See bug 614544 for reference.
2010-05-27Rename gdbusutils.h to avoid conflict with GIOMatthias Clasen8-10/+10
This makes gvfs build with recent glib again, see bug #619537
2010-04-26Skip malformed data from the backend sideTomas Bzatek1-0/+1
Sometimes we may get unexpected data from dbus which was leading to an endless loop. See bug 614544 for reference.
2009-11-26Add "default location" support for mountsChristian Kellner2-2/+13
The "default location" of the given mount is a path that reflects the main entry point for the user (e.g. the home directory, or the root of the volume). Backends can use g_vfs_backend_set_default_location () to set the default location (before registering the mount). https://bugzilla.gnome.org/show_bug.cgi?id=561998
2009-11-09[common] Loading icon and title on Blu-ray video discsBastien Nocera3-3/+264
Using the BDMV/META/DL/bdmt_eng.xml file on BDMV discs, we can load better names and icons for the disc. Adds expat requirement to the common library if it is found. https://bugzilla.gnome.org/show_bug.cgi?id=600887
2009-10-08Fix creating mount_spec from stringTomas Bzatek1-1/+1
Don't consume the ending character.
2009-09-11Fix a ref leakMatthias Clasen1-0/+1
This leak was pointed out by clang, and reported in bug 594832.
2009-08-18Avoid deadlock when pulling resolved dns-sd record from cacheTomas Bzatek1-2/+11
When the host has already been resolved and is present in cache, it's returned immediately. But we always started a mainloop resulting in endless waiting for an event which had been received before that. This applies for the sync call. This is just a workaround, the sync code should be ported over avahi. See bug 555436 (comments 30-32) for details.
2009-08-18Canonicalize mount prefix to prevent mountspec matching issuesTomas Bzatek1-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.
2009-07-08Bug 587484 – Interaction when unmounting mounts and misc fixesDavid Zeuthen4-4/+366
- Port everything to use _with_operation() variants of unmount/eject methods - Add support for g_file_poll_mountable() - new job class: GVfsJobPollMountable - Pass mount operation for unmount/eject ops on GDaemonFile and GDaemonMount - receive in the appropriate GVfsJob classes - also pass unmount flags where it was missing - port all backends to use this - Teach GMountSource and GMountOperationDBus about the new GMountOperation::show-processes signal - also provide new API - g_mount_source_is_dummy() - e.g. when the client didn't passed NULL for the GMountOperation - g_mount_source_abort() - to send the ::abort signal to the client-side GMountOperation - make the client-side of GMountSource return ::reply with NOT_HANDLED when we do an abort - Refactor the mount operation handling in GProxyVolumeMonitor - Pass mount operation for unmount/ejects in GProxyVolumeMonitor - Pass the process id of the actual reader/writer in OpenForRead and OpenForWrite daemon methods - add some private API for making the FUSE client set the pid of the POSIX client (otherwise it looks like the FUSE client is blocking) and pass the right pid. This is because the FUSE client is basically impersonating the POSIX processes. - Make the process id mentioned above available in appropriate GVfsJob classes - GVfsJobOpenForRead - GVfsJobOpenForWrite - GVfsChannel - Provide API to get a list of all blocking clients, e.g. an array of GPid - g_vfs_daemon_get_blocking_processes() - Provide convenience API to easily doing the right thing on unmount; e.g. interact with the user about blocking processes - see the gphoto2 backend for example usage - g_vfs_backend_has_blocking_processes() - g_vfs_backend_unmount_with_operation() and g_vfs_backend_unmount_with_operation_finish() - Only the gphoto2 backend supports ::show-processes right now. Support for other backends will be added shortly. - Implement support for ::show-processes in the GDU volume monitor - right now we don't support "Unmount Anyway" since it requires ABI changes in libgdu.so - this will be changed as soon as there's a new gnome-disk-utility release
2009-06-25Implement a dbus based metadata get callAlexander Larsson1-0/+1
2009-06-25Remove spew from gmountspec changesAlexander Larsson1-1/+0
2009-06-25Make g_mount_spec_to_string generate a "nicer" stringAlexander Larsson1-26/+38
We'll be showing this of publically as the id of metadata databases, so it better be somewhat shorter and nicer.
2009-06-25Fix up GFileInfo marshallingAlexander Larsson1-3/+6
2009-06-25(de)marshal the attribute status in GFileInfoAlexander Larsson3-7/+25
2009-06-25Support (de)marshalling of new GFileInfo keys (invalid & stringv)Alexander Larsson2-9/+99
2009-06-23Add gvfsd-metadata update daemonAlexander Larsson1-0/+8
This daemon singleton handles updates to metadata stores. All clients that wishes to write metadata should talk to it via dbus. This way all writes are serialized to avoid data loss on concurrent writes.