diff options
author | Jo Shields <jms@destiny> | 2010-09-19 20:47:07 +0100 |
---|---|---|
committer | Jo Shields <jms@destiny> | 2010-09-19 20:47:07 +0100 |
commit | 4247b7e6e67ab79cea4f5b80566ab1e8def6f6f2 (patch) | |
tree | 37793aba80fc8180b56e789f0836ad37d0ee48af /bindings/mono/ApplicationIndicator.custom | |
parent | b598108bd71748ab0dc7088a36835864f5f96e22 (diff) | |
download | ayatana-indicator-application-4247b7e6e67ab79cea4f5b80566ab1e8def6f6f2.tar.gz ayatana-indicator-application-4247b7e6e67ab79cea4f5b80566ab1e8def6f6f2.tar.bz2 ayatana-indicator-application-4247b7e6e67ab79cea4f5b80566ab1e8def6f6f2.zip |
The purpose of a dllmap is to turn a DllImport for "foo" into a dlopen of "bar". This is most commonly used to make apps more cross-platform, by specifying the Windows library name (foo.dll) into a Linux/OSX/etc filename (libfoo.so.0).
indicator-application has been binding directly to libappindicator.so.0, which means multiple places to update if the SONAME changes, and makes it less portable - this commit fixes this.
Diffstat (limited to 'bindings/mono/ApplicationIndicator.custom')
-rw-r--r-- | bindings/mono/ApplicationIndicator.custom | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bindings/mono/ApplicationIndicator.custom b/bindings/mono/ApplicationIndicator.custom index 11d16a8..fcc52d7 100644 --- a/bindings/mono/ApplicationIndicator.custom +++ b/bindings/mono/ApplicationIndicator.custom @@ -1,10 +1,10 @@ -[DllImport ("libappindicator.so.0")] +[DllImport ("appindicator.dll")] static extern int app_indicator_get_status (IntPtr i); -[DllImport ("libappindicator.so.0")] +[DllImport ("appindicator.dll")] static extern int app_indicator_get_category (IntPtr i); -[DllImport ("libappindicator.so.0")] +[DllImport ("appindicator.dll")] static extern void app_indicator_set_status (IntPtr i, int s); [GLib.Property ("status")] @@ -23,4 +23,4 @@ static extern void app_indicator_set_status (IntPtr i, int s); get { return (Category) app_indicator_get_category (Handle); } - }
\ No newline at end of file + } |