@@ -99,7 +99,7 @@ gchar *tmp = NULL;
99
99
100
100
#define DIRTY_COMPLEX (_def , _data ) complex_object_is_dirty(_def, (char*)(&_data), sizeof(_data))
101
101
102
- static gboolean
102
+ STATIC gboolean
103
103
write_match (yaml_event_t * event , yaml_emitter_t * emitter , const NetplanNetDefinition * def )
104
104
{
105
105
YAML_SCALAR_PLAIN (event , emitter , "match" );
@@ -121,7 +121,7 @@ write_match(yaml_event_t* event, yaml_emitter_t* emitter, const NetplanNetDefini
121
121
err_path : return FALSE; // LCOV_EXCL_LINE
122
122
}
123
123
124
- static gboolean
124
+ STATIC gboolean
125
125
write_auth (yaml_event_t * event , yaml_emitter_t * emitter , NetplanAuthenticationSettings auth )
126
126
{
127
127
YAML_SCALAR_PLAIN (event , emitter , "auth" );
@@ -145,7 +145,7 @@ write_auth(yaml_event_t* event, yaml_emitter_t* emitter, NetplanAuthenticationSe
145
145
err_path : return FALSE; // LCOV_EXCL_LINE
146
146
}
147
147
148
- static gboolean
148
+ STATIC gboolean
149
149
write_bond_params (yaml_event_t * event , yaml_emitter_t * emitter , const NetplanNetDefinition * def )
150
150
{
151
151
if (DIRTY (def , def -> bond_params )
@@ -205,7 +205,7 @@ write_bond_params(yaml_event_t* event, yaml_emitter_t* emitter, const NetplanNet
205
205
err_path : return FALSE; // LCOV_EXCL_LINE
206
206
}
207
207
208
- static gboolean
208
+ STATIC gboolean
209
209
write_vxlan (yaml_event_t * event , yaml_emitter_t * emitter , const NetplanNetDefinition * def )
210
210
{
211
211
if (def -> type == NETPLAN_DEF_TYPE_TUNNEL && def -> tunnel .mode == NETPLAN_TUNNEL_MODE_VXLAN ) {
@@ -267,7 +267,7 @@ write_vxlan(yaml_event_t* event, yaml_emitter_t* emitter, const NetplanNetDefini
267
267
err_path : return FALSE; // LCOV_EXCL_LINE
268
268
}
269
269
270
- static gboolean
270
+ STATIC gboolean
271
271
write_bridge_params (yaml_event_t * event , yaml_emitter_t * emitter , const NetplanNetDefinition * def , const GArray * interfaces )
272
272
{
273
273
if (def -> custom_bridging || DIRTY_COMPLEX (def , def -> bridge_params )) {
@@ -316,7 +316,7 @@ write_bridge_params(yaml_event_t* event, yaml_emitter_t* emitter, const NetplanN
316
316
err_path : return FALSE; // LCOV_EXCL_LINE
317
317
}
318
318
319
- static gboolean
319
+ STATIC gboolean
320
320
write_modem_params (yaml_event_t * event , yaml_emitter_t * emitter , const NetplanNetDefinition * def )
321
321
{
322
322
/* some modem settings to auto-detect GSM vs CDMA connections */
@@ -339,7 +339,7 @@ typedef struct {
339
339
yaml_emitter_t * emitter ;
340
340
} _passthrough_handler_data ;
341
341
342
- static void
342
+ STATIC void
343
343
_passthrough_handler (GQuark key_id , gpointer value , gpointer user_data )
344
344
{
345
345
_passthrough_handler_data * d = user_data ;
@@ -348,7 +348,7 @@ _passthrough_handler(GQuark key_id, gpointer value, gpointer user_data)
348
348
err_path : return ; // LCOV_EXCL_LINE
349
349
}
350
350
351
- static gboolean
351
+ STATIC gboolean
352
352
write_backend_settings (yaml_event_t * event , yaml_emitter_t * emitter , NetplanBackendSettings s ) {
353
353
if (s .uuid || s .name || s .passthrough ) {
354
354
YAML_SCALAR_PLAIN (event , emitter , "networkmanager" );
@@ -371,7 +371,7 @@ write_backend_settings(yaml_event_t* event, yaml_emitter_t* emitter, NetplanBack
371
371
err_path : return FALSE; // LCOV_EXCL_LINE
372
372
}
373
373
374
- static gboolean
374
+ STATIC gboolean
375
375
write_access_points (yaml_event_t * event , yaml_emitter_t * emitter , const NetplanNetDefinition * def )
376
376
{
377
377
NetplanWifiAccessPoint * ap = NULL ;
@@ -407,7 +407,7 @@ write_access_points(yaml_event_t* event, yaml_emitter_t* emitter, const NetplanN
407
407
err_path : return FALSE; // LCOV_EXCL_LINE
408
408
}
409
409
410
- static gboolean
410
+ STATIC gboolean
411
411
write_addresses (yaml_event_t * event , yaml_emitter_t * emitter , const NetplanNetDefinition * def )
412
412
{
413
413
YAML_SCALAR_PLAIN (event , emitter , "addresses" );
@@ -438,7 +438,7 @@ write_addresses(yaml_event_t* event, yaml_emitter_t* emitter, const NetplanNetDe
438
438
err_path : return FALSE; // LCOV_EXCL_LINE
439
439
}
440
440
441
- static gboolean
441
+ STATIC gboolean
442
442
write_nameservers (yaml_event_t * event , yaml_emitter_t * emitter , const NetplanNetDefinition * def )
443
443
{
444
444
YAML_SCALAR_PLAIN (event , emitter , "nameservers" );
@@ -470,7 +470,7 @@ write_nameservers(yaml_event_t* event, yaml_emitter_t* emitter, const NetplanNet
470
470
err_path : return FALSE; // LCOV_EXCL_LINE
471
471
}
472
472
473
- static gboolean
473
+ STATIC gboolean
474
474
write_dhcp_overrides (yaml_event_t * event , yaml_emitter_t * emitter , const char * key , const NetplanNetDefinition * def , const NetplanDHCPOverrides * data )
475
475
{
476
476
if (DIRTY_COMPLEX (def , * data )
@@ -500,7 +500,7 @@ write_dhcp_overrides(yaml_event_t* event, yaml_emitter_t* emitter, const char* k
500
500
err_path : return FALSE; // LCOV_EXCL_LINE
501
501
}
502
502
503
- static gboolean
503
+ STATIC gboolean
504
504
write_tunnel_settings (yaml_event_t * event , yaml_emitter_t * emitter , const NetplanNetDefinition * def )
505
505
{
506
506
YAML_NONNULL_STRING (event , emitter , "mode" , netplan_tunnel_mode_name (def -> tunnel .mode ));
@@ -573,7 +573,7 @@ write_tunnel_settings(yaml_event_t* event, yaml_emitter_t* emitter, const Netpla
573
573
err_path : return FALSE; // LCOV_EXCL_LINE
574
574
}
575
575
576
- static gboolean
576
+ STATIC gboolean
577
577
write_routes (yaml_event_t * event , yaml_emitter_t * emitter , const NetplanNetDefinition * def )
578
578
{
579
579
if (def -> routes && def -> routes -> len > 0 ) {
@@ -625,7 +625,7 @@ write_routes(yaml_event_t* event, yaml_emitter_t* emitter, const NetplanNetDefin
625
625
err_path : return FALSE; // LCOV_EXCL_LINE
626
626
}
627
627
628
- static gboolean
628
+ STATIC gboolean
629
629
write_openvswitch (yaml_event_t * event , yaml_emitter_t * emitter , const NetplanOVSSettings * ovs , NetplanBackend backend , GHashTable * ovs_ports )
630
630
{
631
631
GHashTableIter iter ;
@@ -714,7 +714,7 @@ write_openvswitch(yaml_event_t* event, yaml_emitter_t* emitter, const NetplanOVS
714
714
err_path : return FALSE; // LCOV_EXCL_LINE
715
715
}
716
716
717
- static void
717
+ STATIC void
718
718
_serialize_yaml (
719
719
const NetplanState * np_state ,
720
720
yaml_event_t * event ,
@@ -1007,15 +1007,15 @@ netplan_netdef_write_yaml(
1007
1007
// LCOV_EXCL_STOP
1008
1008
}
1009
1009
1010
- static int
1010
+ STATIC int
1011
1011
contains_netdef_type (gconstpointer value , gconstpointer user_data )
1012
1012
{
1013
1013
const NetplanNetDefinition * nd = value ;
1014
1014
const NetplanDefType * type = user_data ;
1015
1015
return nd -> type == * type ? 0 : -1 ;
1016
1016
}
1017
1017
1018
- static gboolean
1018
+ STATIC gboolean
1019
1019
netplan_netdef_list_write_yaml (const NetplanState * np_state , GList * netdefs , int out_fd , const char * out_fname , gboolean is_fallback , GError * * error )
1020
1020
{
1021
1021
GHashTable * ovs_ports = NULL ;
0 commit comments