shared: move src/import/curl-util.h to src/shared/

Move more common definitions in the header file instead of repeating
them in bunch of places. src/import/curl-util.[ch] is renamed so that
it's shared more naturally with other components.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2026-04-15 21:27:39 +02:00
parent 0ba59c3d32
commit cdc8aadaed
7 changed files with 21 additions and 23 deletions
+1 -2
View File
@@ -18,6 +18,7 @@
#include "chase.h"
#include "copy.h"
#include "creds-util.h"
#include "curl-util.h"
#include "device-private.h"
#include "dns-rr.h"
#include "errno-util.h"
@@ -53,8 +54,6 @@
#include "web-util.h"
#include "xattr-util.h"
#include "../import/curl-util.h"
/* This implements a client to the AWS' and Azure's "Instance Metadata Service", as well as GCP's "VM
* Metadata", i.e.:
*
+2 -2
View File
@@ -11,8 +11,8 @@ executables += [
'sources' : files(
'imdsd.c',
'imds-util.c'
) + import_curl_util_c,
'dependencies' : [ libcurl ],
) + curl_util_c,
'dependencies' : [libcurl],
},
libexec_template + {
'name' : 'systemd-imds',