Skip to content
Snippets Groups Projects
Commit 2cd054b2 authored by Jakob Olsson's avatar Jakob Olsson
Browse files

does not compile, lacking some dependencies i.e. ubus

parent d2195399
Branches
Tags
No related merge requests found
......@@ -8,6 +8,9 @@ HSRCS = parse_args.h
all: libmobile dongle_apn dongle_pin dongle_network
MOBJS = libmobile.o
MSRCS = libmobile.c
libmobile: ${MOBJS}
${CC} -c ${MSRCS} -o ${MOBJS}
......
#ifndef LIBMOBILE_H
#define LIBMOBILE_H
#include <curl/curl.h>
#include <json-c/json.h>
#include <string.h>
#include <libubox/blobmsg.h>
void curl_cleaner(CURLcode *curl);
size_t write_func(void *buffer, size_t size, size_t nmemb, void *userp);
struct json_object *get_apn_profiles_json(void);
struct blob_buf json_to_blob(struct json_object *response, struct blob_buf bb);
int get_apn_profiles_len(void);
int _delete_apn(int idx, char *response);
int get_apn_profile_idx(struct json_object *apn_profiles, char *name);
char *get_current_wan_apn(void);
char *_create_apn_profile(char *apn);
char *_set_apn_profile(int idx);
char *get_csv(char *csv);
char *_enable_pin(char *pin);
char *_set_pin(char *current_pin, char *new_pin);
char *_disable_pin(char *pin);
#endif
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment