scpm_types.h File Reference

Some variable types used by SCPM. More...

#include <string>
#include <vector>

Include dependency graph for scpm_types.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  resource_group_t
 Variable type to represent a resource group. More...

struct  resource_entry_t
 Variable type to represent a resource entry of a resource group. More...

struct  resource_info_t
 variable type for resource information More...

struct  switch_info_t
 variable type for profile switch information More...

struct  scpm_status_t
 transport container for SCPM status information More...

struct  backup_info_t

Enumerations

enum  save_mode_t { normal, save_all, patch_all }
 Enum varaible type. More...


Variables

char * scpm_error
 Contains last error.

const int scpm_flag_force = 1
 force flag (deletes/overwrites silently data)

const int scpm_flag_skip = 2
 skip flag (silently drops changes in profiles)

const int scpm_flag_quiet = 4
 no user output

const int scpm_flag_verbose = 8
 tell what's going on

const int scpm_flag_hash = 16
 print progress bar when useful (using hash marks)

const int scpm_flag_debug = 32
 log debug messages

const int scpm_flag_boot = 64
 boot mode (does not call resource actions)

const int scpm_flag_exit_on_warning = 128
 abort even on warnings

const int scpm_flag_skip_load = 256
 skip loading of database

const int scpm_flag_force_db = 512
 force loading of database even when versions do not match


Detailed Description

This file contains variable types used by SCPM and global variables.

Enumeration Type Documentation

enum save_mode_t
 

This is used in the switch_into_t struct. It can have the values normal (default), save_all, and patch_all. normal means the resource should get saved to the profile the user is about to leave and that's it. save_all means the resource should get saved to all existing profiles. patch_all means the current changes (and only the current) to the resource should be patched into all profiles.


Variable Documentation

char * scpm_error
 

scpm_error is a character pointer containing the latest error. Usually, if SCPM encounters a fatal error, the current operation aborts and returns false (exceptions: SCPM::Active and SCPM::List). Afterwards you can investigate this global variable to find out the reason.


SCPM interface description - 2002,2003 SuSE Linux AG