Skip to content
Snippets Groups Projects
Select Git revision
  • af464144d1214dbf2a216eaf3b6216c56f06dee6
  • experimental default protected
  • v2023.2.5-ffs
  • nrb/ex400-remove-wps
  • nrb/airmax-test
  • v2023.2.4-ffs
  • nrb/ar9344-reset-sequence
  • autinerd/experimental-openwrt-24.10
  • v2023.2.3-ffs
  • v2023.2.2-ffs
  • v2023.2-ffs
  • v2023.1-ffs
  • v2022.1.4-ffs
  • feature/addMikrotikwAP
  • v2022.1.3-ffs
  • v2021.1.2-ffs
  • v2022.1.1-ffs
  • master protected
  • v2021.1.1-ffs
  • nrb/gluon-master-cpe510
  • v2021.1-ffs
  • experimental-2025-10-06
  • experimental-2025-10-06-base
  • experimental-2025-10-02
  • experimental-2025-10-02-base
  • experimental-2025-09-19
  • experimental-2025-09-19-base
  • experimental-2025-09-15
  • experimental-2025-09-15-base
  • experimental-2025-09-12
  • experimental-2025-09-12-base
  • experimental-2025-09-11
  • experimental-2025-09-11-base
  • experimental-2025-09-08
  • experimental-2025-09-08-base
  • experimental-2025-09-07
  • experimental-2025-09-07-base
  • experimental-2025-09-05
  • experimental-2025-09-05-base
  • experimental-2025-09-03
  • experimental-2025-09-03-base
41 results

libgluonutil.h

Blame
  • user avatar
    Jan-Niklas Burfeind authored
    found BSD-2-Clause
    5f6bf492
    History
    libgluonutil.h 1.15 KiB
    /* SPDX-FileCopyrightText: 2016 Matthias Schiffer <mschiffer@universe-factory.net> */
    /* SPDX-License-Identifier: BSD-2-Clause */
    
    
    #ifndef _LIBGLUON_LIBGLUON_H_
    #define _LIBGLUON_LIBGLUON_H_
    
    #include <net/if.h>
    #include <netinet/in.h>
    #include <stdbool.h>
    
    
    char * gluonutil_read_line(const char *filename);
    char * gluonutil_get_sysconfig(const char *key);
    char * gluonutil_get_node_id(void);
    
    enum gluonutil_interface_type {
    	GLUONUTIL_INTERFACE_TYPE_UNKNOWN,
    	GLUONUTIL_INTERFACE_TYPE_WIRED,
    	GLUONUTIL_INTERFACE_TYPE_WIRELESS,
    	GLUONUTIL_INTERFACE_TYPE_TUNNEL,
    };
    
    void gluonutil_get_interface_lower(char out[IF_NAMESIZE], const char *ifname);
    char * gluonutil_get_interface_address(const char *ifname);
    enum gluonutil_interface_type gluonutil_get_interface_type(const char *ifname);
    
    bool gluonutil_get_node_prefix6(struct in6_addr *prefix);
    
    struct json_object * gluonutil_wrap_string(const char *str);
    struct json_object * gluonutil_wrap_and_free_string(char *str);
    
    bool gluonutil_has_domains(void);
    char * gluonutil_get_domain(void);
    char * gluonutil_get_primary_domain(void);
    struct json_object * gluonutil_load_site_config(void);
    
    #endif /* _LIBGLUON_LIBGLUON_H_ */