~ubuntu-branches/ubuntu/quantal/lxc/quantal-201208301614

« back to all changes in this revision

Viewing changes to src/lxc/lxc.h

  • Committer: Package Import Robot
  • Author(s): Stéphane Graber, Stéphane Graber, Serge Hallyn
  • Date: 2012-08-22 11:50:51 UTC
  • Revision ID: package-import@ubuntu.com-20120822115051-2cmb0vjrkyadjovf
Tags: 0.8.0~rc1-4ubuntu28
[ Stéphane Graber ]
* Merge liblxc changes:
  - Build-depend on automake as autogen.sh is now run at build time.
  - Introduce new liblxc0 binary package
  - Make lxc to depend on liblxc0
  - Move library to the new binary package
  - Change libdir to be the public multi-arch path
  - Build with --disable-rpath
  - Move all the test binaries to a lxc-test-* namespace
* Merge python3-lxc changes:
  - Introduce new python3-lxc binary package
  - Update debian/rules to build the python3 code
* Update lxc-start-ephemeral:
  - Replace tabs by 4 spaces, fix indentation
  - Fix code to work properly as non-root (calling sudo where needed)

[ Serge Hallyn ]
* confile.c: support hooks in save_config().
* conf.h: Add array of hook names

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
 * data was readen, < 0 otherwise
85
85
 */
86
86
extern int lxc_monitor_read(int fd, struct lxc_msg *msg);
 
87
extern int lxc_monitor_read_timeout(int fd, struct lxc_msg *msg, int timeout);
87
88
 
88
89
/*
89
90
 * Close the fd associated with the monitoring
178
179
 */
179
180
extern const char const *lxc_version(void);
180
181
 
 
182
/*
 
183
 * Create and return a new lxccontainer struct.
 
184
 */
 
185
extern struct lxc_container *lxc_container_new(char *name);
 
186
 
 
187
/*
 
188
 * Returns 1 on success, 0 on failure.
 
189
 */
 
190
extern int lxc_container_get(struct lxc_container *c);
 
191
 
 
192
/*
 
193
 * Put a lxccontainer struct reference.
 
194
 * Return -1 on error.
 
195
 * Return 0 if this was not the last reference.
 
196
 * If it is the last reference, free the lxccontainer and return 1.
 
197
 */
 
198
extern int lxc_container_put(struct lxc_container *c);
 
199
 
 
200
/*
 
201
 * Get a list of valid wait states.
 
202
 * If states is NULL, simply return the number of states
 
203
 */
 
204
extern int lxc_get_wait_states(char **states);
 
205
 
181
206
#ifdef __cplusplus
182
207
}
183
208
#endif