pacemaker
3.0.1-16e74fc4da
Scalable High-Availability cluster resource manager
Loading...
Searching...
No Matches
lib
common
location.c
Go to the documentation of this file.
1
/*
2
* Copyright 2024 the Pacemaker project contributors
3
*
4
* The version control history for this file may have further details.
5
*
6
* This source code is licensed under the GNU Lesser General Public License
7
* version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
8
*/
9
10
#include <
crm_internal.h
>
11
12
#include <stdlib.h>
// free()
13
#include <glib.h>
// gpointer, g_list_free_full()
14
15
#include <
crm/common/scheduler.h
>
16
23
void
24
pcmk__free_location
(gpointer user_data)
25
{
26
pcmk__location_t
*location = user_data;
27
28
g_list_free_full(location->
nodes
,
pcmk__free_node_copy
);
29
free(location->
id
);
30
free(location);
31
}
crm_internal.h
pcmk__free_location
void pcmk__free_location(gpointer user_data)
Definition
location.c:24
pcmk__free_node_copy
void pcmk__free_node_copy(void *data)
Definition
nodes.c:64
scheduler.h
Scheduler API.
pcmk__location_t
Location constraint object.
Definition
location_internal.h:24
pcmk__location_t::nodes
GList * nodes
Definition
location_internal.h:29
pcmk__location_t::id
char * id
Definition
location_internal.h:25
Generated on Thu Aug 7 2025 12:04:47 for pacemaker by
1.12.0