~ubuntu-branches/ubuntu/karmic/vzctl/karmic

« back to all changes in this revision

Viewing changes to include/env.h

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2007-04-10 18:08:16 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070410180816-0uuzj9fnna7gmzxv
Tags: 3.0.16-4
Etch has been released which means that this version can be uploaded
to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 *  Copyright (C) 2000-2006 SWsoft. All rights reserved.
 
2
 *  Copyright (C) 2000-2007 SWsoft. All rights reserved.
3
3
 *
4
4
 *  This program is free software; you can redistribute it and/or modify
5
5
 *  it under the terms of the GNU General Public License as published by
44
44
        M_KILL,         /**< stop by SIGTERM. */
45
45
};
46
46
 
47
 
/** Allocate and inittialize VPS handler.
 
47
/** Allocate and initialize VE handler.
48
48
 *
49
 
 * @param veid          VPS id.
 
49
 * @param veid          VE id.
50
50
 * @return              handler or NULL on error.
51
51
 */
52
52
vps_handler *vz_open(envid_t veid);
53
53
 
54
 
/** Close VPS handler.
 
54
/** Close VE handler.
55
55
 *
56
 
 * @param h             VPS handler.
 
56
 * @param h             VE handler.
57
57
 */
58
58
void vz_close(vps_handler *h);
59
59
 
60
 
/** Get VPS status.
 
60
/** Get VE status.
61
61
 *
62
 
 * @param h             VPS handler.
63
 
 * @param veid          VPS id.
64
 
 * @return              1 - VPS is running
65
 
 *                      0 - VPS is stopped.
 
62
 * @param h             VE handler.
 
63
 * @param veid          VE id.
 
64
 * @return              1 - VE is running
 
65
 *                      0 - VE is stopped.
66
66
 */
67
67
int vps_is_run(vps_handler *h, envid_t veid);
68
68
 
69
 
/** Sart VPS.
 
69
/** Start VE.
70
70
 *
71
 
 * @param h             VPS handler.
72
 
 * @param veid          VPS id.
73
 
 * @param param         VPS resourses.
74
 
 * @param skip          flags to skip VPS setup (SKIP_SETUP|SKIP_ACTION_SCRIPT)
 
71
 * @param h             VE handler.
 
72
 * @param veid          VE id.
 
73
 * @param param         VE resourses.
 
74
 * @param skip          flags to skip VE setup (SKIP_SETUP|SKIP_ACTION_SCRIPT)
75
75
 * @param action        modules list, used to call setup() callback
76
76
 * @return              0 on success.
77
77
 */
82
82
        skipFlags skip, struct mod_action *mod,
83
83
        env_create_FN fn, void *data);
84
84
 
85
 
/** Stop VPS.
 
85
/** Stop VE.
86
86
 *
87
 
 * @param h             VPS handler.
88
 
 * @param veid          VPS id.
89
 
 * @param param         VPS resourses.
 
87
 * @param h             VE handler.
 
88
 * @param veid          VE id.
 
89
 * @param param         VE resourses.
90
90
 * @param stop_mode     stop mode one of (M_REBOOT M_HALT M_KILL).
91
91
 * @param skip          flags to skip run action script (SKIP_ACTION_SCRIPT)
92
92
 * @param action        modules list, used to call cleanup() callback.
97
97
 
98
98
/** Change root to specified directory
99
99
 *
100
 
 * @param               VPS root
 
100
 * @param               VE root
101
101
 * @return              0 on success
102
102
 */
103
103
int vz_chroot(char *root);