MySQL  8.0.22
Source Code Documentation
node_list.h
Go to the documentation of this file.
1 /* Copyright (c) 2015, 2020, 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 "xdr_gen/xcom_vp.h"
27 
28 node_list clone_node_list(node_list list);
29 char *dbg_list(node_list const *nodes);
30 void init_node_list(u_int n, node_address *names, node_list *nodes);
31 int match_node(node_address *n1, node_address *n2, u_int with_uid);
32 void add_node_list(u_int n, node_address *names, node_list *nodes);
33 int node_exists(node_address *name, node_list const *nodes);
34 int node_exists_with_uid(node_address *name, node_list const *nodes);
35 node_address *new_node_address(u_int n, char *names[]);
36 node_address *new_node_address_uuid(u_int n, char *names[], blob uuid[]);
37 void delete_node_address(u_int n, node_address *na);
38 void remove_node_list(u_int n, node_address *names, node_list *nodes);
39 node_address *init_single_node_address(node_address *na, char *name);
40 node_address *init_node_address(node_address *na, u_int n, char *names[]);
41 node_list *empty_node_list();
42 node_list null_node_list();
43 blob clone_blob(blob const b);
44 blob *clone_blob_ptr(blob const *b);
45 uint32_t chksum_node_list(node_list const *nodes);
46 
47 #endif
void remove_node_list(u_int n, node_address *names, node_list *nodes)
Definition: node_list.cc:190
void delete_node_address(u_int n, node_address *na)
Definition: node_list.cc:277
node_list null_node_list()
Definition: node_list.cc:227
node_address * new_node_address(u_int n, char *names[])
Definition: node_list.cc:254
int node_exists(node_address *name, node_list const *nodes)
Definition: node_list.cc:106
void add_node_list(u_int n, node_address *names, node_list *nodes)
Definition: node_list.cc:152
class udf_list * list
node_address * init_single_node_address(node_address *na, char *name)
Definition: node_list.cc:239
node_list clone_node_list(node_list list)
Definition: node_list.cc:62
int node_exists_with_uid(node_address *name, node_list const *nodes)
Definition: node_list.cc:110
case opt name
Definition: sslopt-case.h:32
char * dbg_list(node_list const *nodes)
Debug a node list.
Definition: node_list.cc:47
__u_int u_int
Definition: types.h:72
int match_node(node_address *n1, node_address *n2, u_int with_uid)
Definition: node_list.cc:68
int n
Definition: xcom_base.cc:442
void init_node_list(u_int n, node_address *names, node_list *nodes)
Definition: node_list.cc:220
blob clone_blob(blob const b)
Definition: node_list.cc:133
node_list * empty_node_list()
Definition: node_list.cc:234
node_address * init_node_address(node_address *na, u_int n, char *names[])
Definition: node_list.cc:246
uint32_t chksum_node_list(node_list const *nodes)
Definition: node_list.cc:298
node_address * new_node_address_uuid(u_int n, char *names[], blob uuid[])
Definition: node_list.cc:259
blob * clone_blob_ptr(blob const *b)
Definition: node_list.cc:144