1/*
2 * Copyright (C) 2014 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef _DM_TREE_PLUGIN_UTIL_H
18#define _DM_TREE_PLUGIN_UTIL_H
19
20#ifndef __cplusplus
21#error "This is a C++ header file; it requires C++ to compile."
22#endif
23
24//------------------------------------------------------------------------
25//            Header Name: dm_tree_plugin_util.H
26//
27//  General Description: This file contains prototypes of plugin utilities
28//------------------------------------------------------------------------
29
30#include "dmPluginManager.h"
31#include "SyncML_DM_Archiver.H"
32
33SYNCML_DM_RET_STATUS_T DmRemoveTempfile(DMString &dirName);
34
35SYNCML_DM_RET_STATUS_T DmCallPluginFunction(CPCHAR szURI,
36                                            FILESETTYPE nFileSet,
37                                            SYNCML_DM_COMMAND_T type);
38
39SYNCML_DM_RET_STATUS_T DmExecutePlugin(CPCHAR path,
40                                       CPCHAR args,
41                                       CPCHAR szCorrelator,
42                                       DMString & oResult);
43
44SYNCML_DM_RET_STATUS_T DmCheckConstraint(CPCHAR szURI,
45                                         FILESETTYPE * nFileSet,
46                                         FILESETTYPE * nFileSetToRollback);
47
48#endif
49