MySQL  8.0.20
Source Code Documentation
node_list.h
Go to the documentation of this file.
1 /* Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
2 
3  This program is free software; you can redistribute it and/or modify
4  it under the terms of the GNU General Public License, version 2.0,
5  as published by the Free Software Foundation.
6 
7  This program is also distributed with certain software (including
8  but not limited to OpenSSL) that is licensed under separate terms,
9  as designated in a particular file or component or in included license
10  documentation. The authors of MySQL hereby grant you an additional
11  permission to link the program and your derivative works with the
12  separately licensed software that they have included with MySQL.
13 
14  This program is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU General Public License, version 2.0, for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with this program; if not, write to the Free Software
21  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22 
23 #ifndef NODE_LIST_H
24 #define NODE_LIST_H
25 
26 #include "plugin/group_replication/libmysqlgcs/xdr_gen/xcom_vp.h"
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 node_list clone_node_list(node_list list);
33 char *dbg_list(node_list const *nodes);
34 void init_node_list(u_int n, node_address *names, node_list *nodes);
35 int match_node(node_address *n1, node_address *n2, u_int with_uid);
36 void add_node_list(u_int n, node_address *names, node_list *nodes);
37 int node_exists(node_address *name, node_list const *nodes);
38 int node_exists_with_uid(node_address *name, node_list const *nodes);
39 node_address *new_node_address(u_int n, char *names[]);
40 node_address *new_node_address_uuid(u_int n, char *names[], blob uuid[]);
41 void delete_node_address(u_int n, node_address *na);
42 void remove_node_list(u_int n, node_address *names, node_list *nodes);
43 node_address *init_single_node_address(node_address *na, char *name);
44 node_address *init_node_address(node_address *na, u_int n, char *names[]);
45 node_list *empty_node_list();
46 
47 #ifdef __cplusplus
48 }
49 #endif
50 
51 #endif
void remove_node_list(u_int n, node_address *names, node_list *nodes)
Definition: node_list.c:180
void delete_node_address(u_int n, node_address *na)
Definition: node_list.c:250
node_address * new_node_address(u_int n, char *names[])
Definition: node_list.c:228
int node_exists(node_address *name, node_list const *nodes)
Definition: node_list.c:113
void add_node_list(u_int n, node_address *names, node_list *nodes)
Definition: node_list.c:140
class udf_list * list
node_address * init_single_node_address(node_address *na, char *name)
Definition: node_list.c:213
node_list clone_node_list(node_list list)
Definition: node_list.c:62
int node_exists_with_uid(node_address *name, node_list const *nodes)
Definition: node_list.c:117
case opt name
Definition: sslopt-case.h:32
char * dbg_list(node_list const *nodes)
Debug a node list.
Definition: node_list.c:47
__u_int u_int
Definition: types.h:73
int match_node(node_address *n1, node_address *n2, u_int with_uid)
Definition: node_list.c:71
int n
Definition: xcom_base.c:425
void init_node_list(u_int n, node_address *names, node_list *nodes)
Definition: node_list.c:203
node_list * empty_node_list()
Definition: node_list.c:209
node_address * init_node_address(node_address *na, u_int n, char *names[])
Definition: node_list.c:220
node_address * new_node_address_uuid(u_int n, char *names[], blob uuid[])
Definition: node_list.c:233