return 0;
}
-int lxc_freeze(struct lxc_conf *conf, const char *name, const char *lxcpath)
+bool lxc_freeze(struct lxc_conf *conf, const char *name, const char *lxcpath)
{
int ret;
else
ret = do_freeze_thaw(true, conf, name, lxcpath);
lxc_cmd_notify_state_listeners(name, lxcpath, !ret ? FROZEN : RUNNING);
- return ret;
+ return ret == 0;
}
-int lxc_unfreeze(struct lxc_conf *conf, const char *name, const char *lxcpath)
+bool lxc_unfreeze(struct lxc_conf *conf, const char *name, const char *lxcpath)
{
int ret;
else
ret = do_freeze_thaw(false, conf, name, lxcpath);
lxc_cmd_notify_state_listeners(name, lxcpath, !ret ? RUNNING : FROZEN);
- return ret;
+ return ret == 0;
}
* @name : the container name
* Returns 0 on success, < 0 otherwise
*/
-__hidden extern int lxc_freeze(struct lxc_conf *conf, const char *name, const char *lxcpath);
+__hidden extern bool lxc_freeze(struct lxc_conf *conf, const char *name, const char *lxcpath);
/*
* Unfreeze all previously frozen tasks.
* @name : the name of the container
* Return 0 on success, < 0 otherwise
*/
-__hidden extern int lxc_unfreeze(struct lxc_conf *conf, const char *name, const char *lxcpath);
+__hidden extern bool lxc_unfreeze(struct lxc_conf *conf, const char *name, const char *lxcpath);
/*
* Retrieve the container state