/src/rauc/include/network.h
Line | Count | Source |
1 | | #pragma once |
2 | | |
3 | | #include <glib.h> |
4 | | |
5 | | #if ENABLE_NETWORK |
6 | | /** |
7 | | * Network initialization routine. |
8 | | * |
9 | | * Sets up libcurl. |
10 | | * |
11 | | * @param error return location for a GError, or NULL |
12 | | * |
13 | | * @return TRUE if succeeded, FALSE if failed |
14 | | */ |
15 | | gboolean network_init(GError **error) |
16 | | G_GNUC_WARN_UNUSED_RESULT; |
17 | | #else |
18 | | static inline gboolean network_init(GError **error) |
19 | 1 | { |
20 | 1 | return TRUE; |
21 | 1 | } Line | Count | Source | 19 | 1 | { | 20 | 1 | return TRUE; | 21 | 1 | } |
Unexecuted instantiation: bundle.c:network_init |
22 | | #endif |
23 | | |
24 | | gboolean download_file(const gchar *target, const gchar *url, goffset limit, GError **error) |
25 | | G_GNUC_WARN_UNUSED_RESULT; |