Skip to content

Latest commit

 

History

History
75 lines (60 loc) · 1.77 KB

mms_engine.h

File metadata and controls

75 lines (60 loc) · 1.77 KB
 
Feb 17, 2014
Feb 17, 2014
1
/*
Feb 2, 2016
Feb 2, 2016
2
3
* Copyright (C) 2013-2016 Jolla Ltd.
* Contact: Slava Monich <slava.monich@jolla.com>
Feb 17, 2014
Feb 17, 2014
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef JOLLA_MMS_ENGINE_H
#define JOLLA_MMS_ENGINE_H
#include <gio/gio.h>
May 12, 2014
May 12, 2014
19
#include "mms_settings.h"
Feb 2, 2016
Feb 2, 2016
20
#include "mms_version.h"
Jul 16, 2014
Jul 16, 2014
21
Feb 17, 2014
Feb 17, 2014
22
23
24
25
26
#define MMS_APP_LOG_PREFIX "mms-engine"
#define MMS_ENGINE_SERVICE "org.nemomobile.MmsEngine"
#define MMS_ENGINE_PATH "/"
May 12, 2014
May 12, 2014
27
28
29
30
#define MMS_ENGINE_FLAG_KEEP_RUNNING (0x01)
#define MMS_ENGINE_FLAG_OVERRIDE_USER_AGENT (0x02)
#define MMS_ENGINE_FLAG_OVERRIDE_SIZE_LIMIT (0x04)
#define MMS_ENGINE_FLAG_OVERRIDE_MAX_PIXELS (0x08)
May 30, 2014
May 30, 2014
31
#define MMS_ENGINE_FLAG_OVERRIDE_UAPROF (0x10)
Feb 17, 2014
Feb 17, 2014
32
Sep 29, 2016
Sep 29, 2016
33
34
35
36
37
#ifndef MMS_ENGINE_CONFIG_FILE
/* Default config file */
# define MMS_ENGINE_CONFIG_FILE "/etc/mms-engine.conf"
#endif /* MMS_ENGINE_CONFIG_FILE */
Feb 17, 2014
Feb 17, 2014
38
39
40
41
42
typedef struct mms_engine MMSEngine;
MMSEngine*
mms_engine_new(
const MMSConfig* config,
Sep 29, 2016
Sep 29, 2016
43
const MMSSettingsSimData* defaults,
Feb 17, 2014
Feb 17, 2014
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
unsigned int flags,
MMSLogModule* log_modules[],
int log_count);
MMSEngine*
mms_engine_ref(
MMSEngine* engine);
void
mms_engine_unref(
MMSEngine* engine);
void
mms_engine_run(
MMSEngine* engine,
GMainLoop* loop);
void
mms_engine_stop(
MMSEngine* engine);
gboolean
mms_engine_register(
MMSEngine* engine,
GDBusConnection* bus,
GError** error);
void
mms_engine_unregister(
MMSEngine* engine);
#endif /* JOLLA_MMS_ENGINE_H */