libnm: only include "nm-jansson.h" from "nm-json.h"

"nm-utils/nm-jansson.h" and thus <jansson.h> must be included only
after "nm-json.h". Enforce that by never including them directly,
except from "nm-json.h" itself.
This commit is contained in:
Thomas Haller 2018-01-09 07:20:19 +01:00
parent ee56c9250f
commit e5f3c0fc8a
2 changed files with 2 additions and 1 deletions

View file

@ -44,6 +44,8 @@ gboolean nm_jansson_load (void);
#define json_object_iter (*_nm_jansson_json_object_iter)
#define json_integer_value (*_nm_jansson_json_integer_value)
#define json_string_value (*_nm_jansson_json_string_value)
#include "nm-utils/nm-jansson.h"
#endif
#endif /* __NM_JSON_H__ */

View file

@ -39,7 +39,6 @@
#include "nm-json.h"
#endif
#include "nm-utils/nm-jansson.h"
#include "nm-utils/nm-enum-utils.h"
#include "nm-common-macros.h"
#include "nm-utils-private.h"