@@ -43,16 +43,16 @@ static ReceiveAssociation* macsec_receive_association_free(ReceiveAssociation *c
4343 if (c -> macsec && c -> section )
4444 ordered_hashmap_remove (c -> macsec -> receive_associations_by_section , c -> section );
4545
46- network_config_section_free (c -> section );
46+ config_section_free (c -> section );
4747 security_association_clear (& c -> sa );
4848
4949 return mfree (c );
5050}
5151
52- DEFINE_NETWORK_SECTION_FUNCTIONS (ReceiveAssociation , macsec_receive_association_free );
52+ DEFINE_SECTION_CLEANUP_FUNCTIONS (ReceiveAssociation , macsec_receive_association_free );
5353
5454static int macsec_receive_association_new_static (MACsec * s , const char * filename , unsigned section_line , ReceiveAssociation * * ret ) {
55- _cleanup_ (network_config_section_freep ) NetworkConfigSection * n = NULL ;
55+ _cleanup_ (config_section_freep ) ConfigSection * n = NULL ;
5656 _cleanup_ (macsec_receive_association_freep ) ReceiveAssociation * c = NULL ;
5757 int r ;
5858
@@ -61,7 +61,7 @@ static int macsec_receive_association_new_static(MACsec *s, const char *filename
6161 assert (filename );
6262 assert (section_line > 0 );
6363
64- r = network_config_section_new (filename , section_line , & n );
64+ r = config_section_new (filename , section_line , & n );
6565 if (r < 0 )
6666 return r ;
6767
@@ -82,7 +82,7 @@ static int macsec_receive_association_new_static(MACsec *s, const char *filename
8282
8383 security_association_init (& c -> sa );
8484
85- r = ordered_hashmap_ensure_put (& s -> receive_associations_by_section , & network_config_hash_ops , c -> section , c );
85+ r = ordered_hashmap_ensure_put (& s -> receive_associations_by_section , & config_section_hash_ops , c -> section , c );
8686 if (r < 0 )
8787 return r ;
8888
@@ -103,12 +103,12 @@ static ReceiveChannel* macsec_receive_channel_free(ReceiveChannel *c) {
103103 ordered_hashmap_remove (c -> macsec -> receive_channels_by_section , c -> section );
104104 }
105105
106- network_config_section_free (c -> section );
106+ config_section_free (c -> section );
107107
108108 return mfree (c );
109109}
110110
111- DEFINE_NETWORK_SECTION_FUNCTIONS (ReceiveChannel , macsec_receive_channel_free );
111+ DEFINE_SECTION_CLEANUP_FUNCTIONS (ReceiveChannel , macsec_receive_channel_free );
112112
113113static int macsec_receive_channel_new (MACsec * s , uint64_t sci , ReceiveChannel * * ret ) {
114114 ReceiveChannel * c ;
@@ -129,7 +129,7 @@ static int macsec_receive_channel_new(MACsec *s, uint64_t sci, ReceiveChannel **
129129}
130130
131131static int macsec_receive_channel_new_static (MACsec * s , const char * filename , unsigned section_line , ReceiveChannel * * ret ) {
132- _cleanup_ (network_config_section_freep ) NetworkConfigSection * n = NULL ;
132+ _cleanup_ (config_section_freep ) ConfigSection * n = NULL ;
133133 _cleanup_ (macsec_receive_channel_freep ) ReceiveChannel * c = NULL ;
134134 int r ;
135135
@@ -138,7 +138,7 @@ static int macsec_receive_channel_new_static(MACsec *s, const char *filename, un
138138 assert (filename );
139139 assert (section_line > 0 );
140140
141- r = network_config_section_new (filename , section_line , & n );
141+ r = config_section_new (filename , section_line , & n );
142142 if (r < 0 )
143143 return r ;
144144
@@ -154,7 +154,7 @@ static int macsec_receive_channel_new_static(MACsec *s, const char *filename, un
154154
155155 c -> section = TAKE_PTR (n );
156156
157- r = ordered_hashmap_ensure_put (& s -> receive_channels_by_section , & network_config_hash_ops , c -> section , c );
157+ r = ordered_hashmap_ensure_put (& s -> receive_channels_by_section , & config_section_hash_ops , c -> section , c );
158158 if (r < 0 )
159159 return r ;
160160
@@ -170,16 +170,16 @@ static TransmitAssociation* macsec_transmit_association_free(TransmitAssociation
170170 if (a -> macsec && a -> section )
171171 ordered_hashmap_remove (a -> macsec -> transmit_associations_by_section , a -> section );
172172
173- network_config_section_free (a -> section );
173+ config_section_free (a -> section );
174174 security_association_clear (& a -> sa );
175175
176176 return mfree (a );
177177}
178178
179- DEFINE_NETWORK_SECTION_FUNCTIONS (TransmitAssociation , macsec_transmit_association_free );
179+ DEFINE_SECTION_CLEANUP_FUNCTIONS (TransmitAssociation , macsec_transmit_association_free );
180180
181181static int macsec_transmit_association_new_static (MACsec * s , const char * filename , unsigned section_line , TransmitAssociation * * ret ) {
182- _cleanup_ (network_config_section_freep ) NetworkConfigSection * n = NULL ;
182+ _cleanup_ (config_section_freep ) ConfigSection * n = NULL ;
183183 _cleanup_ (macsec_transmit_association_freep ) TransmitAssociation * a = NULL ;
184184 int r ;
185185
@@ -188,7 +188,7 @@ static int macsec_transmit_association_new_static(MACsec *s, const char *filenam
188188 assert (filename );
189189 assert (section_line > 0 );
190190
191- r = network_config_section_new (filename , section_line , & n );
191+ r = config_section_new (filename , section_line , & n );
192192 if (r < 0 )
193193 return r ;
194194
@@ -209,7 +209,7 @@ static int macsec_transmit_association_new_static(MACsec *s, const char *filenam
209209
210210 security_association_init (& a -> sa );
211211
212- r = ordered_hashmap_ensure_put (& s -> transmit_associations_by_section , & network_config_hash_ops , a -> section , a );
212+ r = ordered_hashmap_ensure_put (& s -> transmit_associations_by_section , & config_section_hash_ops , a -> section , a );
213213 if (r < 0 )
214214 return r ;
215215
0 commit comments