aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llappviewerlinux.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llappviewerlinux.h34
1 files changed, 32 insertions, 2 deletions
diff --git a/linden/indra/newview/llappviewerlinux.h b/linden/indra/newview/llappviewerlinux.h
index a180b4d..7b6d75c 100644
--- a/linden/indra/newview/llappviewerlinux.h
+++ b/linden/indra/newview/llappviewerlinux.h
@@ -32,6 +32,14 @@
32#ifndef LL_LLAPPVIEWERLINUX_H 32#ifndef LL_LLAPPVIEWERLINUX_H
33#define LL_LLAPPVIEWERLINUX_H 33#define LL_LLAPPVIEWERLINUX_H
34 34
35#if LL_DBUS_ENABLED
36extern "C" {
37# include <glib.h>
38# include <glib-object.h>
39# include <dbus/dbus-glib.h>
40}
41#endif
42
35#ifndef LL_LLAPPVIEWER_H 43#ifndef LL_LLAPPVIEWER_H
36#include "llappviewer.h" 44#include "llappviewer.h"
37#endif 45#endif
@@ -49,15 +57,37 @@ public:
49 // 57 //
50 virtual bool init(); // Override to do application initialization 58 virtual bool init(); // Override to do application initialization
51 std::string generateSerialNumber(); 59 std::string generateSerialNumber();
60 bool setupSLURLHandler();
52 61
53protected: 62protected:
54 virtual bool beingDebugged(); 63 virtual bool beingDebugged();
55 64
56 virtual void handleCrashReporting(); 65 virtual bool restoreErrorTrap();
66 virtual void handleCrashReporting(bool reportFreeze);
57 virtual void handleSyncCrashTrace(); 67 virtual void handleSyncCrashTrace();
58 68
59 virtual bool initLogging(); 69 virtual bool initLogging();
60 virtual bool initParseCommandLine(LLCommandLineParser& clp); 70 virtual bool initParseCommandLine(LLCommandLineParser& clp);
71
72 virtual bool initSLURLHandler();
73 virtual bool sendURLToOtherInstance(const std::string& url);
61}; 74};
62 75
76#if LL_DBUS_ENABLED
77typedef struct
78{
79 GObject parent;
80 DBusGConnection *connection;
81} ViewerAppAPI;
82
83extern "C" {
84 gboolean viewer_app_api_GoSLURL(ViewerAppAPI *obj, gchar *slurl, gboolean **success_rtn, GError **error);
85}
86
87#define VIEWERAPI_SERVICE "com.secondlife.ViewerAppAPIService"
88#define VIEWERAPI_PATH "/com/secondlife/ViewerAppAPI"
89#define VIEWERAPI_INTERFACE "com.secondlife.ViewerAppAPI"
90
91#endif // LL_DBUS_ENABLED
92
63#endif // LL_LLAPPVIEWERLINUX_H 93#endif // LL_LLAPPVIEWERLINUX_H