Lines Matching defs:value

337     const char* value = NULL;
343 value = lxc_get_global_config_item(key);
345 if (!value) {
350 return PyUnicode_FromString(value);
905 char* value;
919 value = (char*) malloc(sizeof(char)*len + 1);
920 if (value == NULL)
924 key, value, len + 1) != len) {
925 PyErr_SetString(PyExc_ValueError, "Unable to read config value");
926 free(value);
930 ret = PyUnicode_FromString(value);
931 free(value);
941 char* value;
959 value = (char*) malloc(sizeof(char)*len + 1);
960 if (value == NULL)
964 key, value, len + 1) != len) {
965 PyErr_SetString(PyExc_ValueError, "Unable to read config value");
966 free(value);
970 ret = PyUnicode_FromString(value);
971 free(value);
995 char* value;
1009 value = (char*) malloc(sizeof(char)*len + 1);
1010 if (value == NULL)
1014 key, value, len + 1) != len) {
1016 free(value);
1020 ret = PyUnicode_FromString(value);
1021 free(value);
1142 char* value = NULL;
1149 value = self->container->get_running_config_item(self->container, key);
1151 if (!value)
1154 ret = PyUnicode_FromString(value);
1155 free(value);
1276 static char *kwlist[] = {"key", "value", NULL};
1278 char *value = NULL;
1281 &key, &value))
1284 if (self->container->set_cgroup_item(self->container, key, value)) {
1294 static char *kwlist[] = {"key", "value", NULL};
1296 char *value = NULL;
1299 &key, &value))
1302 if (self->container->set_config_item(self->container, key, value)) {
1626 "Clear the current value of a config key."
1671 "Get the current value of a cgroup entry."
1677 "Get the current value of a config key."
1707 "Get the runtime value of a config key."
1743 "set_cgroup_item(key, value) -> boolean\n"
1745 "Set a cgroup entry to the provided value."
1749 "set_config_item(key, value) -> boolean\n"
1751 "Set a config key to the provided value."