tizen 2.4 release
[framework/web/wrt-plugins-common.git] / src / xwalk-module / XW_Extension_Runtime.h
1 // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef XWALK_EXTENSIONS_PUBLIC_XW_EXTENSION_RUNTIME_H_
6 #define XWALK_EXTENSIONS_PUBLIC_XW_EXTENSION_RUNTIME_H_
7
8 // NOTE: This file and interfaces marked as internal are not considered stable
9 // and can be modified in incompatible ways between Crosswalk versions.
10
11 #ifndef XWALK_EXTENSIONS_PUBLIC_XW_EXTENSION_H_
12 #error "You should include XW_Extension.h before this file"
13 #endif
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19 #define XW_INTERNAL_RUNTIME_INTERFACE_1 \
20   "XW_Internal_RuntimeInterface_1"
21 #define XW_INTERNAL_RUNTIME_INTERFACE \
22   XW_INTERNAL_RUNTIME_INTERFACE_1
23
24 //
25 // XW_INTERNAL_RUNTIME_INTERFACE: allow extensions to gather information
26 // from the runtime.
27 //
28
29 struct XW_Internal_RuntimeInterface_1 {
30   void (*GetRuntimeVariableString)(XW_Extension extension,
31                                    const char* key,
32                                    char* value,
33                                    unsigned int value_len);
34 };
35
36 typedef struct XW_Internal_RuntimeInterface_1
37     XW_Internal_RuntimeInterface;
38
39 #ifdef __cplusplus
40 }  // extern "C"
41 #endif
42
43 #endif  // XWALK_EXTENSIONS_PUBLIC_XW_EXTENSION_RUNTIME_H_
44