~n-muench/ubuntu/quantal/open-vm-tools/open-vm-tools.may2.sid-sync

« back to all changes in this revision

Viewing changes to lib/deployPkg/runDeployPkgInt.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-05-30 09:48:43 UTC
  • mfrom: (1.1.5 upstream) (2.4.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090530094843-gdpza57r5iqsf124
Tags: 2009.05.22-167859-1
MergingĀ upstreamĀ versionĀ 2009.05.22-167859.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*********************************************************
2
 
 * Copyright (C) 2006 VMware, Inc. All rights reserved.
3
 
 *
4
 
 * This program is free software; you can redistribute it and/or modify it
5
 
 * under the terms of the GNU Lesser General Public License as published
6
 
 * by the Free Software Foundation version 2.1 and no later version.
7
 
 *
8
 
 * This program is distributed in the hope that it will be useful, but
9
 
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10
 
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the Lesser GNU General Public
11
 
 * License for more details.
12
 
 *
13
 
 * You should have received a copy of the GNU Lesser General Public License
14
 
 * along with this program; if not, write to the Free Software Foundation, Inc.,
15
 
 * 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA.
16
 
 *
17
 
 *********************************************************/
18
 
 
19
 
/*
20
 
 * runDeployPkgInt.h --
21
 
 *
22
 
 *    c interface to load the deployPkg library and call the
23
 
 *    DeployPkg_DeployPackageFromFile export
24
 
 */
25
 
 
26
 
#ifndef _RUN_DEPLOYPKG_INT_H
27
 
#define _RUN_DEPLOYPKG_INT_H
28
 
 
29
 
#ifdef __cplusplus
30
 
extern "C" {
31
 
#endif
32
 
 
33
 
#include "vm_basic_types.h"
34
 
#include "toolsDeployPkg.h"
35
 
 
36
 
/*
37
 
 * DeployPkg logger. In order to add the LogFunction pointer definition
38
 
 * to tools, we'd need to populate the component before the service
39
 
 * build, which would force anyone building tools to connect to the
40
 
 * component repo. To avoid that, duplicate the definition here:
41
 
 */
42
 
typedef void (*DeployPkgLogFunction) (int level, const char *fmtstr, ...);
43
 
 
44
 
/* Function pointers for exports in dll/so */
45
 
typedef int (*DeployPkgFromFileFn)(const char*);
46
 
typedef void (*DeployPkgSetLogFn)(DeployPkgLogFunction);
47
 
 
48
 
/* Decorated function names from deployPkg.dll */
49
 
#define FNAME_DEPLOYPKGFROMFILE "DeployPkg_DeployPackageFromFile"
50
 
#define FNAME_SETLOGGER "DeployPkg_SetLogger"
51
 
 
52
 
ToolsDeployPkgError
53
 
DeployPkgDeployPkgInGuest(const char* pkgFile, // IN: the package filename
54
 
                          char* errBuf,        // OUT: buffer for msg on fail
55
 
                          int errBufSize);     // IN: size of errBuf
56
 
 
57
 
#ifdef __cplusplus
58
 
}
59
 
#endif
60
 
 
61
 
#endif // _RUN_DEPLOYPKG_INT_H
62