3
* ====================================================================
4
* Licensed to the Apache Software Foundation (ASF) under one
5
* or more contributor license agreements. See the NOTICE file
6
* distributed with this work for additional information
7
* regarding copyright ownership. The ASF licenses this file
8
* to you under the Apache License, Version 2.0 (the
9
* "License"); you may not use this file except in compliance
10
* with the License. You may obtain a copy of the License at
12
* http://www.apache.org/licenses/LICENSE-2.0
14
* Unless required by applicable law or agreed to in writing,
15
* software distributed under the License is distributed on an
16
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17
* KIND, either express or implied. See the License for the
18
* specific language governing permissions and limitations
20
* ====================================================================
24
#ifndef SVN_JAVAHL_UTILITY_HPP
25
#define SVN_JAVAHL_UTILITY_HPP
35
* Converts keyword/valuue pairs in the the Java map @a jkeywords to
36
* an APR hash table allocated in @a pool. The keys in the resulting
37
* table are @c const @c char*, the values are @c svn_string_t*. Null
38
* values in the Java map are converted to empty strings.
43
make_keyword_hash(::Java::Env env, jobject jkeywords, apr_pool_t* pool);
46
* Converts keyword/valuue pairs in the the Java map @a jkeywords to
47
* an APR hash table allocated in @a pool. The keys in the resulting
48
* table are @c const @c char*, the values are @c svn_string_t*. Null
49
* values in the Java map are converted to empty strings.
54
make_keyword_hash(::Java::Env env, jobject jkeywords,
55
const ::SVN::Pool& pool)
57
return make_keyword_hash(env, jkeywords, pool.getPool());
62
* Converts property/value pairs the Java map @a jproperties to an APR
63
* hash table allocated in @a pool. The keys in the resulting table
64
* are @c const @c char*, the values are @c svn_string_t*. Null values
65
* in the Java map will not appear in the converted map.
70
make_property_hash(::Java::Env env, jobject jproperties, apr_pool_t* pool);
73
* Converts property/value pairs the Java map @a jproperties to an APR
74
* hash table allocated in @a pool. The keys in the resulting table
75
* are @c const @c char*, the values are @c svn_string_t*. Null values
76
* in the Java map will not appear in the converted map.
81
make_property_hash(::Java::Env env, jobject jproperties,
82
const ::SVN::Pool& pool)
84
return make_property_hash(env, jproperties, pool.getPool());
90
#endif // SVN_JAVAHL_JNI_UTILITY_HPP