summaryrefslogtreecommitdiffstats
blob: e89f495752f3206195d9c3c52cbfe03480631dcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * Copyright (c) 2013-2014 Remko Tronçon
 * Licensed under the GNU General Public License.
 * See the COPYING file for more information.
 */

#pragma once

#include <Sluift/LuaElementConvertors.h>
#include <Swiften/EventLoop/SimpleEventLoop.h>
#include <Swiften/Network/BoostNetworkFactories.h>
#ifdef HAVE_ITUNES
#include <Sluift/ITunesInterface.h>
#endif
#include <signal.h>

namespace Swift {
	struct SluiftGlobals {
		SluiftGlobals() : 
			networkFactories(&eventLoop), 
			coreLibIndex(-1),
			moduleLibIndex(-1),
			interruptRequested(0) {}

		LuaElementConvertors elementConvertor;
		SimpleEventLoop eventLoop;
		BoostNetworkFactories networkFactories;
		int coreLibIndex;
		int moduleLibIndex;
		sig_atomic_t interruptRequested;
#ifdef HAVE_ITUNES
		ITunesInterface iTunes;
#endif
	};
}