3 * AT chat library with GLib integration
5 * Copyright (C) 2008-2011 Intel Corporation. All rights reserved.
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
34 typedef struct _GAtHDLC GAtHDLC;
36 GAtHDLC *g_at_hdlc_new(GIOChannel *channel);
37 GAtHDLC *g_at_hdlc_new_from_io(GAtIO *io);
39 GAtHDLC *g_at_hdlc_ref(GAtHDLC *hdlc);
40 void g_at_hdlc_unref(GAtHDLC *hdlc);
42 void g_at_hdlc_set_debug(GAtHDLC *hdlc, GAtDebugFunc func, gpointer user_data);
44 void g_at_hdlc_set_xmit_accm(GAtHDLC *hdlc, guint32 accm);
45 guint32 g_at_hdlc_get_xmit_accm(GAtHDLC *hdlc);
47 void g_at_hdlc_set_recv_accm(GAtHDLC *hdlc, guint32 accm);
48 guint32 g_at_hdlc_get_recv_accm(GAtHDLC *hdlc);
50 void g_at_hdlc_set_receive(GAtHDLC *hdlc, GAtReceiveFunc func,
52 gboolean g_at_hdlc_send(GAtHDLC *hdlc, const unsigned char *data, gsize size);
54 void g_at_hdlc_set_recording(GAtHDLC *hdlc, const char *filename);
56 GAtIO *g_at_hdlc_get_io(GAtHDLC *hdlc);
58 void g_at_hdlc_set_start_frame_marker(GAtHDLC *hdlc, gboolean marker);
59 void g_at_hdlc_set_no_carrier_detect(GAtHDLC *hdlc, gboolean detect);
61 void g_at_hdlc_set_suspend_function(GAtHDLC *hdlc, GAtSuspendFunc func,
64 void g_at_hdlc_suspend(GAtHDLC *hdlc);
65 void g_at_hdlc_resume(GAtHDLC *hdlc);
71 #endif /* __G_AT_HDLC_H */