new_stonith 2109 lib/fencing/st_client.c stonith_t *new_stonith = NULL; new_stonith 2112 lib/fencing/st_client.c new_stonith = calloc(1, sizeof(stonith_t)); new_stonith 2113 lib/fencing/st_client.c if (new_stonith == NULL) { new_stonith 2119 lib/fencing/st_client.c free(new_stonith); new_stonith 2122 lib/fencing/st_client.c new_stonith->st_private = private; new_stonith 2130 lib/fencing/st_client.c new_stonith->call_id = 1; new_stonith 2131 lib/fencing/st_client.c new_stonith->state = stonith_disconnected; new_stonith 2133 lib/fencing/st_client.c new_stonith->cmds = calloc(1, sizeof(stonith_api_operations_t)); new_stonith 2134 lib/fencing/st_client.c if (new_stonith->cmds == NULL) { new_stonith 2135 lib/fencing/st_client.c free(new_stonith->st_private); new_stonith 2136 lib/fencing/st_client.c free(new_stonith); new_stonith 2141 lib/fencing/st_client.c new_stonith->cmds->free = stonith_api_free; new_stonith 2142 lib/fencing/st_client.c new_stonith->cmds->connect = stonith_api_signon; new_stonith 2143 lib/fencing/st_client.c new_stonith->cmds->disconnect = stonith_api_signoff; new_stonith 2145 lib/fencing/st_client.c new_stonith->cmds->list = stonith_api_list; new_stonith 2146 lib/fencing/st_client.c new_stonith->cmds->monitor = stonith_api_monitor; new_stonith 2147 lib/fencing/st_client.c new_stonith->cmds->status = stonith_api_status; new_stonith 2148 lib/fencing/st_client.c new_stonith->cmds->fence = stonith_api_fence; new_stonith 2149 lib/fencing/st_client.c new_stonith->cmds->fence_with_delay = stonith_api_fence_with_delay; new_stonith 2150 lib/fencing/st_client.c new_stonith->cmds->confirm = stonith_api_confirm; new_stonith 2151 lib/fencing/st_client.c new_stonith->cmds->history = stonith_api_history; new_stonith 2153 lib/fencing/st_client.c new_stonith->cmds->list_agents = stonith_api_device_list; new_stonith 2154 lib/fencing/st_client.c new_stonith->cmds->metadata = stonith_api_device_metadata; new_stonith 2156 lib/fencing/st_client.c new_stonith->cmds->query = stonith_api_query; new_stonith 2157 lib/fencing/st_client.c new_stonith->cmds->remove_device = stonith_api_remove_device; new_stonith 2158 lib/fencing/st_client.c new_stonith->cmds->register_device = stonith_api_register_device; new_stonith 2160 lib/fencing/st_client.c new_stonith->cmds->remove_level = stonith_api_remove_level; new_stonith 2161 lib/fencing/st_client.c new_stonith->cmds->remove_level_full = stonith_api_remove_level_full; new_stonith 2162 lib/fencing/st_client.c new_stonith->cmds->register_level = stonith_api_register_level; new_stonith 2163 lib/fencing/st_client.c new_stonith->cmds->register_level_full = stonith_api_register_level_full; new_stonith 2165 lib/fencing/st_client.c new_stonith->cmds->remove_callback = stonith_api_del_callback; new_stonith 2166 lib/fencing/st_client.c new_stonith->cmds->register_callback = stonith_api_add_callback; new_stonith 2167 lib/fencing/st_client.c new_stonith->cmds->remove_notification = stonith_api_del_notification; new_stonith 2168 lib/fencing/st_client.c new_stonith->cmds->register_notification = stonith_api_add_notification; new_stonith 2170 lib/fencing/st_client.c new_stonith->cmds->validate = stonith_api_validate; new_stonith 2173 lib/fencing/st_client.c return new_stonith;