summaryrefslogtreecommitdiff
path: root/indra/newview/llappviewerlinux.h
diff options
context:
space:
mode:
authorSteven Bennetts <steve@lindenlab.com>2008-09-23 01:53:11 +0000
committerSteven Bennetts <steve@lindenlab.com>2008-09-23 01:53:11 +0000
commitafe61eb994377e25d60d0a0893510a693149c6be (patch)
tree80c6e33cd664e5c8b1c5f55c3b7b49c081dd590a /indra/newview/llappviewerlinux.h
parent2945882258ad1befe8e8094c0a1a655e4ddbcd30 (diff)
QAR-849 merge maint-viewer-10-merge 96838-97237 -> release
Diffstat (limited to 'indra/newview/llappviewerlinux.h')
-rw-r--r--indra/newview/llappviewerlinux.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/indra/newview/llappviewerlinux.h b/indra/newview/llappviewerlinux.h
index 300cb10e2d..a0e48ea388 100644
--- a/indra/newview/llappviewerlinux.h
+++ b/indra/newview/llappviewerlinux.h
@@ -32,6 +32,14 @@
#ifndef LL_LLAPPVIEWERLINUX_H
#define LL_LLAPPVIEWERLINUX_H
+#if LL_DBUS_ENABLED
+extern "C" {
+# include <glib.h>
+# include <glib-object.h>
+# include <dbus/dbus-glib.h>
+}
+#endif
+
#ifndef LL_LLAPPVIEWER_H
#include "llappviewer.h"
#endif
@@ -49,6 +57,7 @@ public:
//
virtual bool init(); // Override to do application initialization
std::string generateSerialNumber();
+ bool setupSLURLHandler();
protected:
virtual bool beingDebugged();
@@ -58,6 +67,26 @@ protected:
virtual bool initLogging();
virtual bool initParseCommandLine(LLCommandLineParser& clp);
+
+ virtual bool initSLURLHandler();
+ virtual bool sendURLToOtherInstance(const std::string& url);
};
+#if LL_DBUS_ENABLED
+typedef struct
+{
+ GObject parent;
+ DBusGConnection *connection;
+} ViewerAppAPI;
+
+extern "C" {
+ gboolean viewer_app_api_GoSLURL(ViewerAppAPI *obj, gchar *slurl, gboolean **success_rtn, GError **error);
+}
+
+#define VIEWERAPI_SERVICE "com.secondlife.ViewerAppAPIService"
+#define VIEWERAPI_PATH "/com/secondlife/ViewerAppAPI"
+#define VIEWERAPI_INTERFACE "com.secondlife.ViewerAppAPI"
+
+#endif // LL_DBUS_ENABLED
+
#endif // LL_LLAPPVIEWERLINUX_H