summaryrefslogtreecommitdiff
path: root/include/gsmd/atcmd.h
blob: 0d6c62afce86380201d2462abb14bed7de826c1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef __GSMD_ATCMD_H
#define __GSMD_ATCMD_H

#ifdef __GSMD__

#include <gsmd/gsmd.h>

typedef int atcmd_cb_t(struct gsmd_atcmd *cmd, void *ctx, char *resp);

extern struct gsmd_atcmd *atcmd_fill(const char *cmd, int rlen, atcmd_cb_t *cb, void *ctx, u_int16_t id);
extern int atcmd_submit(struct gsmd *g, struct gsmd_atcmd *cmd);
extern int atcmd_init(struct gsmd *g, int sockfd);
extern void atcmd_drain(int fd);

#endif /* __GSMD__ */

#endif
personal git repositories of Harald Welte. Your mileage may vary