~ubuntu-branches/ubuntu/quantal/lxc/quantal-proposed

« back to all changes in this revision

Viewing changes to src/lxc/lxc.h

  • Committer: Package Import Robot
  • Author(s): Serge Hallyn, Scott Moser, Serge Hallyn
  • Date: 2012-10-24 11:12:42 UTC
  • mfrom: (118.1.44 quantal)
  • Revision ID: package-import@ubuntu.com-20121024111242-qi6v6uozngueumly
Tags: 0.8.0~rc1-4ubuntu38
[ Scott Moser ]
* 0225-ubuntu-cloud-numeric-owner: use --numeric-owner when extracting root
  filesystems with tar (LP: #1066084)

[ Serge Hallyn ]
* Remove 0224-ubuntu-templates-devtmpfs  (LP: #1070914)

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(const char **states);
 
205
 
181
206
#ifdef __cplusplus
182
207
}
183
208
#endif