Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
djinni
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
djinni
Commits
ae11beb3
Commit
ae11beb3
authored
Sep 23, 2015
by
Jacob Potter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactors in preparation for Python
parent
7cf15a69
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
42 additions
and
18 deletions
+42
-18
support-lib/djinni_common.hpp
support-lib/djinni_common.hpp
+23
-0
support-lib/jni/djinni_support.cpp
support-lib/jni/djinni_support.cpp
+1
-6
support-lib/support_lib.gyp
support-lib/support_lib.gyp
+3
-0
test-suite/djinni/all.djinni
test-suite/djinni/all.djinni
+2
-12
test-suite/djinni/common.djinni
test-suite/djinni/common.djinni
+12
-0
test-suite/generated-src/inFileList.txt
test-suite/generated-src/inFileList.txt
+1
-0
No files found.
support-lib/djinni_common.hpp
0 → 100644
View file @
ae11beb3
//
// Copyright 2015 Dropbox, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
#pragma once
#ifdef _MSC_VER // weak attribute not supported by MSVC
#define DJINNI_WEAK_DEFINITION
#else
#define DJINNI_WEAK_DEFINITION __attribute__((weak))
#endif
support-lib/jni/djinni_support.cpp
View file @
ae11beb3
...
...
@@ -14,6 +14,7 @@
// limitations under the License.
//
#include "../djinni_common.hpp"
#include "djinni_support.hpp"
#include "../proxy_cache_impl.hpp"
#include <cassert>
...
...
@@ -22,12 +23,6 @@
static_assert
(
sizeof
(
jlong
)
>=
sizeof
(
void
*
),
"must be able to fit a void* into a jlong"
);
#ifdef _MSC_VER // weak attribute not supported by MSVC
#define DJINNI_WEAK_DEFINITION
#else
#define DJINNI_WEAK_DEFINITION __attribute__((weak))
#endif
namespace
djinni
{
// Set only once from JNI_OnLoad before any other JNI calls, so no lock needed.
...
...
support-lib/support_lib.gyp
View file @
ae11beb3
...
...
@@ -4,7 +4,10 @@
"target_name": "djinni_jni",
"type": "static_library",
"sources": [
"djinni_common.hpp",
"jni/djinni_support.cpp",
"jni/djinni_support.hpp",
"jni/Marshal.hpp",
],
"include_dirs": [
"jni",
...
...
test-suite/djinni/all.djinni
View file @
ae11beb3
@import "set.djinni"
@import "derivings.djinni"
@import "nested_collection.djinni"
@import "map.djinni"
@import "primitive_list.djinni"
@import "exception.djinni"
@import "client_interface.djinni"
@import "enum.djinni"
@import "user_token.djinni"
@import "test.djinni"
@import "primtypes.djinni"
@import "constants.djinni"
@import "common.djinni"
@import "date.djinni"
@import "duration.djinni"
test-suite/djinni/common.djinni
0 → 100644
View file @
ae11beb3
@import "set.djinni"
@import "derivings.djinni"
@import "nested_collection.djinni"
@import "map.djinni"
@import "primitive_list.djinni"
@import "exception.djinni"
@import "client_interface.djinni"
@import "enum.djinni"
@import "user_token.djinni"
@import "test.djinni"
@import "primtypes.djinni"
@import "constants.djinni"
test-suite/generated-src/inFileList.txt
View file @
ae11beb3
djinni/all.djinni
djinni/common.djinni
djinni/set.djinni
djinni/derivings.djinni
djinni/nested_collection.djinni
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment