summaryrefslogtreecommitdiff
path: root/src/gsmd/atcmd.h
blob: ded3f00de55e9462c81404b4a2c806a047fcd38a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef __GSMD_ATCMD_H
#define __GSMD_ATCMD_H

#include "gsmd.h"

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

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

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