3
3
* ====================================================================
4
* Copyright (c) 2003-2004 CollabNet. All rights reserved.
6
* This software is licensed as described in the file COPYING, which
7
* you should have received as part of this distribution. The terms
8
* are also available at http://subversion.tigris.org/license-1.html.
9
* If newer versions of this license are posted there, you may use a
10
* newer version instead, at your option.
12
* This software consists of voluntary contributions made by many
13
* individuals. For exact contribution history, see the revision
14
* history and logs, available at http://subversion.tigris.org/.
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
15
20
* ====================================================================
32
38
class CommitMessage
36
* Deletes the global reference to m_jcommitMessage.
41
CommitMessage(jobject jcommitMessage);
40
jstring getCommitMessage(const apr_array_header_t *commit_items);
44
static svn_error_t *callback(const char **log_msg,
45
const char **tmp_file,
46
const apr_array_header_t *commit_items,
43
* Create a C++ holding object for the Java object passed into the
46
* @param jcommitMessage The local reference to a
47
* org.tigris.subversion.javahl.CommitMessage Java commit message
50
static CommitMessage *makeCCommitMessage(jobject jcommitMessage);
51
svn_error_t *getCommitMessage(const char **log_msg,
52
const char **tmp_file,
53
const apr_array_header_t *commit_items,
54
* A global reference to the Java object, because the reference
55
* must be valid longer than the SVNClient.commitMessage call.
57
/* A local reference. */
57
58
jobject m_jcommitMessage;
60
* Create a commit message object.
62
* @param jcommitMessage The Java object to receive the callback.
64
CommitMessage(jobject jcommitMessage);
67
62
#endif // COMMITMESSAGE_H