shared: fix WL_EXPORT style in config-parser.c

This was the only file in Weston using WL_EXPORT on its own line. Fix
the style to follow everything else.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
dev
Pekka Paalanen 3 years ago committed by Pekka Paalanen
parent f58a3a7e1d
commit 0a38fc7e75
  1. 36
      shared/config-parser.c

@ -129,8 +129,7 @@ config_section_get_entry(struct weston_config_section *section,
return NULL; return NULL;
} }
WL_EXPORT WL_EXPORT struct weston_config_section *
struct weston_config_section *
weston_config_get_section(struct weston_config *config, const char *section, weston_config_get_section(struct weston_config *config, const char *section,
const char *key, const char *value) const char *key, const char *value)
{ {
@ -152,8 +151,7 @@ weston_config_get_section(struct weston_config *config, const char *section,
return NULL; return NULL;
} }
WL_EXPORT WL_EXPORT int
int
weston_config_section_get_int(struct weston_config_section *section, weston_config_section_get_int(struct weston_config_section *section,
const char *key, const char *key,
int32_t *value, int32_t default_value) int32_t *value, int32_t default_value)
@ -175,8 +173,7 @@ weston_config_section_get_int(struct weston_config_section *section,
return 0; return 0;
} }
WL_EXPORT WL_EXPORT int
int
weston_config_section_get_uint(struct weston_config_section *section, weston_config_section_get_uint(struct weston_config_section *section,
const char *key, const char *key,
uint32_t *value, uint32_t default_value) uint32_t *value, uint32_t default_value)
@ -212,8 +209,7 @@ weston_config_section_get_uint(struct weston_config_section *section,
return 0; return 0;
} }
WL_EXPORT WL_EXPORT int
int
weston_config_section_get_color(struct weston_config_section *section, weston_config_section_get_color(struct weston_config_section *section,
const char *key, const char *key,
uint32_t *color, uint32_t default_color) uint32_t *color, uint32_t default_color)
@ -250,8 +246,7 @@ weston_config_section_get_color(struct weston_config_section *section,
return 0; return 0;
} }
WL_EXPORT WL_EXPORT int
int
weston_config_section_get_double(struct weston_config_section *section, weston_config_section_get_double(struct weston_config_section *section,
const char *key, const char *key,
double *value, double default_value) double *value, double default_value)
@ -276,8 +271,7 @@ weston_config_section_get_double(struct weston_config_section *section,
return 0; return 0;
} }
WL_EXPORT WL_EXPORT int
int
weston_config_section_get_string(struct weston_config_section *section, weston_config_section_get_string(struct weston_config_section *section,
const char *key, const char *key,
char **value, const char *default_value) char **value, const char *default_value)
@ -299,8 +293,7 @@ weston_config_section_get_string(struct weston_config_section *section,
return 0; return 0;
} }
WL_EXPORT WL_EXPORT int
int
weston_config_section_get_bool(struct weston_config_section *section, weston_config_section_get_bool(struct weston_config_section *section,
const char *key, const char *key,
bool *value, bool default_value) bool *value, bool default_value)
@ -327,8 +320,7 @@ weston_config_section_get_bool(struct weston_config_section *section,
return 0; return 0;
} }
WL_EXPORT WL_EXPORT const char *
const char *
weston_config_get_name_from_env(void) weston_config_get_name_from_env(void)
{ {
const char *name; const char *name;
@ -389,8 +381,7 @@ section_add_entry(struct weston_config_section *section,
return entry; return entry;
} }
WL_EXPORT WL_EXPORT struct weston_config *
struct weston_config *
weston_config_parse(const char *name) weston_config_parse(const char *name)
{ {
FILE *fp; FILE *fp;
@ -471,15 +462,13 @@ weston_config_parse(const char *name)
return config; return config;
} }
WL_EXPORT WL_EXPORT const char *
const char *
weston_config_get_full_path(struct weston_config *config) weston_config_get_full_path(struct weston_config *config)
{ {
return config == NULL ? NULL : config->path; return config == NULL ? NULL : config->path;
} }
WL_EXPORT WL_EXPORT int
int
weston_config_next_section(struct weston_config *config, weston_config_next_section(struct weston_config *config,
struct weston_config_section **section, struct weston_config_section **section,
const char **name) const char **name)
@ -502,8 +491,7 @@ weston_config_next_section(struct weston_config *config,
return 1; return 1;
} }
WL_EXPORT WL_EXPORT void
void
weston_config_destroy(struct weston_config *config) weston_config_destroy(struct weston_config *config)
{ {
struct weston_config_section *s, *next_s; struct weston_config_section *s, *next_s;

Loading…
Cancel
Save