Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

script.h File Reference

Package script functions. More...

#include <libpackman/package.h>

Go to the source code of this file.

Enumerations

enum  PmScriptType { PM_SCRIPT_PRE, PM_SCRIPT_POST, PM_SCRIPT_TRIGGER }
 Types of scripts. More...

enum  PmScriptEvent { PM_SCRIPTEVT_INSTALL, PM_SCRIPTEVT_UNINSTALL }
 Script events. More...

enum  PmScriptError { PM_SCRIPTERR_SUCCESS, PM_SCRIPTERR_NOT_FOUND, PM_SCRIPTERR_INTERPERR }
 Script errors. More...


Functions

PmScriptError pmExecuteScript (PmPackage *package, PmScriptType type, PmScriptEvent event, const char *trigger)
 Executes the specified script(s) in a package.


Detailed Description

Package script functions.

Id:
script.h,v 1.1 2002/04/25 03:34:13 chipx86 Exp
Copyright:
(C) 1999-2002 The GNUpdate Project.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.

You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.


Enumeration Type Documentation

enum PmScriptError
 

Script errors.

Enumeration values:
PM_SCRIPTERR_SUCCESS  Successful execution of a script.
PM_SCRIPTERR_NOT_FOUND  Specified script not found.
PM_SCRIPTERR_INTERPERR  Error with the script interpreter.

enum PmScriptEvent
 

Script events.

Enumeration values:
PM_SCRIPTEVT_INSTALL  Installation.
PM_SCRIPTEVT_UNINSTALL  Uninstallation.

enum PmScriptType
 

Types of scripts.

Enumeration values:
PM_SCRIPT_PRE  Pre-event script.
PM_SCRIPT_POST  Post-event script.
PM_SCRIPT_TRIGGER  Trigger script.


Function Documentation

PmScriptError pmExecuteScript PmPackage   package,
PmScriptType    type,
PmScriptEvent    event,
const char *    trigger
 

Executes the specified script(s) in a package.

If this is a trigger script, trigger must be the name of a package. If this is not a trigger script, should be NULL.

Parameters:
package  The package containing the scripts.
type  The type of script.
event  The event.
trigger  The name of a package for a trigger, or NULL if the specified script is not a trigger script.
Returns:
The error type.
See also:
PmScriptError


Generated on Tue Jul 2 03:15:24 2002 for libpackman by doxygen1.2.15-20020430