1
/*********************************************************
2
* Copyright (C) 2006 VMware, Inc. All rights reserved.
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.
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.
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.
17
*********************************************************/
20
* runDeployPkgInt.h --
22
* c interface to load the deployPkg library and call the
23
* DeployPkg_DeployPackageFromFile export
26
#ifndef _RUN_DEPLOYPKG_INT_H
27
#define _RUN_DEPLOYPKG_INT_H
33
#include "vm_basic_types.h"
34
#include "toolsDeployPkg.h"
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:
42
typedef void (*DeployPkgLogFunction) (int level, const char *fmtstr, ...);
44
/* Function pointers for exports in dll/so */
45
typedef int (*DeployPkgFromFileFn)(const char*);
46
typedef void (*DeployPkgSetLogFn)(DeployPkgLogFunction);
48
/* Decorated function names from deployPkg.dll */
49
#define FNAME_DEPLOYPKGFROMFILE "DeployPkg_DeployPackageFromFile"
50
#define FNAME_SETLOGGER "DeployPkg_SetLogger"
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
61
#endif // _RUN_DEPLOYPKG_INT_H