Skip to content

Commit

Permalink
Rename namespace of notifications com.google.filesystems.libfuse
Browse files Browse the repository at this point in the history
com.github.osxfuse.libosxfuse
  • Loading branch information
bfleischer committed Jul 5, 2011
1 parent 585d037 commit 7e585c0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 20 deletions.
27 changes: 11 additions & 16 deletions include/fuse_darwin.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,30 +65,25 @@ typedef fuse_sem_t sem_t;

/* Notifications */

#define LIBFUSE_BUNDLE_IDENTIFIER "com.google.filesystems.libfuse"
#define LIBOSXFUSE_BUNDLE_IDENTIFIER "com.github.osxfuse.libosxfuse"

#define LIBFUSE_UNOTIFICATIONS_OBJECT \
LIBFUSE_BUNDLE_IDENTIFIER ".unotifications"
#define LIBOSXFUSE_UNOTIFICATIONS_OBJECT \
LIBOSXFUSE_BUNDLE_IDENTIFIER ".unotifications"

#define LIBFUSE_UNOTIFICATIONS_NOTIFY_OSISTOONEW \
LIBFUSE_BUNDLE_IDENTIFIER ".osistoonew"
#define LIBOSXFUSE_UNOTIFICATIONS_NOTIFY_OSISTOONEW \
LIBOSXFUSE_BUNDLE_IDENTIFIER ".osistoonew"

#define LIBFUSE_UNOTIFICATIONS_NOTIFY_OSISTOOOLD \
LIBFUSE_BUNDLE_IDENTIFIER ".osistooold"
#define LIBOSXFUSE_UNOTIFICATIONS_NOTIFY_OSISTOOOLD \
LIBOSXFUSE_BUNDLE_IDENTIFIER ".osistooold"

#define LIBFUSE_UNOTIFICATIONS_NOTIFY_RUNTIMEVERSIONMISMATCH \
LIBFUSE_BUNDLE_IDENTIFIER ".runtimeversionmismatch"
#define LIBOSXFUSE_UNOTIFICATIONS_NOTIFY_RUNTIMEVERSIONMISMATCH \
LIBOSXFUSE_BUNDLE_IDENTIFIER ".runtimeversionmismatch"

#define LIBFUSE_UNOTIFICATIONS_NOTIFY_VERSIONMISMATCH \
LIBFUSE_BUNDLE_IDENTIFIER ".versionmismatch"
#define LIBOSXFUSE_UNOTIFICATIONS_NOTIFY_VERSIONMISMATCH \
LIBOSXFUSE_BUNDLE_IDENTIFIER ".versionmismatch"

/* Versioning */

#ifdef MACFUSE
const char *macfuse_version(void);
#else
const char *osxfuse_version(void);
#endif
long fuse_os_version_major_np(void);

/* Advanced */
Expand Down
8 changes: 4 additions & 4 deletions lib/mount_darwin.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ post_notification(char *name,
nf_name = CFStringCreateWithCString(kCFAllocatorDefault, name, encoding);

nf_object = CFStringCreateWithCString(kCFAllocatorDefault,
LIBFUSE_UNOTIFICATIONS_OBJECT,
LIBOSXFUSE_UNOTIFICATIONS_OBJECT,
encoding);

nf_udata = CFDictionaryCreateMutable(kCFAllocatorDefault,
Expand Down Expand Up @@ -503,7 +503,7 @@ fuse_mount_core(const char *mountpoint, const char *opts)
);
}
post_notification(
LIBFUSE_UNOTIFICATIONS_NOTIFY_OSISTOOOLD, NULL, NULL, 0);
LIBOSXFUSE_UNOTIFICATIONS_NOTIFY_OSISTOOOLD, NULL, NULL, 0);
} else if (result == EBUSY) {
if (!quiet_mode) {
CFUserNotificationDisplayNotice(
Expand All @@ -517,7 +517,7 @@ fuse_mount_core(const char *mountpoint, const char *opts)
CFSTR("OK")
);
}
post_notification(LIBFUSE_UNOTIFICATIONS_NOTIFY_VERSIONMISMATCH,
post_notification(LIBOSXFUSE_UNOTIFICATIONS_NOTIFY_VERSIONMISMATCH,
NULL, NULL, 0);
}
fprintf(stderr, "the OSXFUSE file system is not available (%d)\n",
Expand Down Expand Up @@ -557,7 +557,7 @@ fuse_mount_core(const char *mountpoint, const char *opts)
CFSTR("OK")
);
}
post_notification(LIBFUSE_UNOTIFICATIONS_NOTIFY_RUNTIMEVERSIONMISMATCH,
post_notification(LIBOSXFUSE_UNOTIFICATIONS_NOTIFY_RUNTIMEVERSIONMISMATCH,
NULL, NULL, 0);
fprintf(stderr,
"this OSXFUSE library version is incompatible with "
Expand Down

0 comments on commit 7e585c0

Please sign in to comment.