diff options
-rw-r--r-- | src/Makefile.am | 10 | ||||
-rw-r--r-- | src/qmi-client-wds.c | 39 | ||||
-rw-r--r-- | src/qmi-client-wds.h | 56 | ||||
-rw-r--r-- | src/qmi-wds.h | 42 |
4 files changed, 143 insertions, 4 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 47b2f2b..852966e 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -23,10 +23,10 @@ qmi-error-types.c: qmi-errors.h qmi-error-types.h $(top_srcdir)/build-aux/qmi-er qmi-errors.h > $@ # Enum types -ENUMS = qmi-enums.h qmi-dms.h qmi-ctl.h +ENUMS = qmi-enums.h qmi-dms.h qmi-wds.h qmi-ctl.h qmi-enum-types.h: $(ENUMS) $(top_srcdir)/build-aux/qmi-enum-types-template.h $(AM_V_GEN) $(GLIB_MKENUMS) \ - --fhead "#ifndef __LIBQMI_GLIB_ENUM_TYPES_H__\n#define __LIBQMI_GLIB_ENUM_TYPES_H__\n#include \"qmi-enums.h\"\n#include \"qmi-dms.h\"\n#include \"qmi-ctl.h\"\n" \ + --fhead "#ifndef __LIBQMI_GLIB_ENUM_TYPES_H__\n#define __LIBQMI_GLIB_ENUM_TYPES_H__\n#include \"qmi-enums.h\"\n#include \"qmi-dms.h\"\n#include \"qmi-ctl.h\"\n#include \"qmi-wds.h\"\n" \ --template $(top_srcdir)/build-aux/qmi-enum-types-template.h \ --ftail "#endif /* __LIBQMI_GLIB_ENUM_TYPES_H__ */\n" \ $(ENUMS) > $@ @@ -56,7 +56,8 @@ libqmi_glib_la_SOURCES = \ qmi-device.h qmi-device.c \ qmi-client.h qmi-client.c \ qmi-ctl.h qmi-client-ctl.h qmi-client-ctl.c \ - qmi-dms.h qmi-client-dms.h qmi-client-dms.c + qmi-dms.h qmi-client-dms.h qmi-client-dms.c \ + qmi-wds.h qmi-client-wds.h qmi-client-wds.c libqmi_glib_la_LIBADD = \ $(LIBQMI_GLIB_LIBS) @@ -68,4 +69,5 @@ include_HEADERS = \ qmi-enums.h qmi-enum-types.h \ qmi-device.h \ qmi-client.h \ - qmi-dms.h qmi-client-dms.h + qmi-dms.h qmi-client-dms.h \ + qmi-wds.h qmi-client-wds.h diff --git a/src/qmi-client-wds.c b/src/qmi-client-wds.c new file mode 100644 index 0000000..ef30c71 --- /dev/null +++ b/src/qmi-client-wds.c @@ -0,0 +1,39 @@ +/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * libqmi-glib -- GLib/GIO based library to control QMI devices + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA. + * + * Copyright (C) 2012 Aleksander Morgado <aleksander@lanedo.com> + */ + +#include <gio/gio.h> + +#include "qmi-client-wds.h" + +G_DEFINE_TYPE (QmiClientWds, qmi_client_wds, QMI_TYPE_CLIENT); + +/*****************************************************************************/ + +static void +qmi_client_wds_init (QmiClientWds *self) +{ +} + +static void +qmi_client_wds_class_init (QmiClientWdsClass *klass) +{ +} diff --git a/src/qmi-client-wds.h b/src/qmi-client-wds.h new file mode 100644 index 0000000..7bec42a --- /dev/null +++ b/src/qmi-client-wds.h @@ -0,0 +1,56 @@ +/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * libqmi-glib -- GLib/GIO based library to control QMI devices + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA. + * + * Copyright (C) 2012 Aleksander Morgado <aleksander@lanedo.com> + */ + +#ifndef _LIBQMI_GLIB_QMI_CLIENT_WDS_H_ +#define _LIBQMI_GLIB_QMI_CLIENT_WDS_H_ + +#include <glib-object.h> + +#include "qmi-client.h" +#include "qmi-wds.h" + +G_BEGIN_DECLS + +#define QMI_TYPE_CLIENT_WDS (qmi_client_wds_get_type ()) +#define QMI_CLIENT_WDS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), QMI_TYPE_CLIENT_WDS, QmiClientWds)) +#define QMI_CLIENT_WDS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), QMI_TYPE_CLIENT_WDS, QmiClientWdsClass)) +#define QMI_IS_CLIENT_WDS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), QMI_TYPE_CLIENT_WDS)) +#define QMI_IS_CLIENT_WDS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), QMI_TYPE_CLIENT_WDS)) +#define QMI_CLIENT_WDS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), QMI_TYPE_CLIENT_WDS, QmiClientWdsClass)) + +typedef struct _QmiClientWds QmiClientWds; +typedef struct _QmiClientWdsClass QmiClientWdsClass; + +struct _QmiClientWds { + QmiClient parent; + gpointer priv_unused; +}; + +struct _QmiClientWdsClass { + QmiClientClass parent; +}; + +GType qmi_client_wds_get_type (void); + +G_END_DECLS + +#endif /* _LIBQMI_GLIB_QMI_CLIENT_WDS_H_ */ diff --git a/src/qmi-wds.h b/src/qmi-wds.h new file mode 100644 index 0000000..3cb9a33 --- /dev/null +++ b/src/qmi-wds.h @@ -0,0 +1,42 @@ +/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ + +/* + * libqmi-glib -- GLib/GIO based library to control QMI devices + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA. + * + * Copyright (C) 2012 Aleksander Morgado <aleksander@gnu.org> + */ + +#ifndef _LIBQMI_GLIB_QMI_WDS_H_ +#define _LIBQMI_GLIB_QMI_WDS_H_ + +#include <glib.h> + +G_BEGIN_DECLS + +/*****************************************************************************/ +/* Supported/known messages */ +typedef enum { + QMI_WDS_MESSAGE_EVENT = 0x0001, /* unused currently */ + QMI_WDS_MESSAGE_START_NETWORK = 0x0020, /* unused currently */ + QMI_WDS_MESSAGE_STOP_NETWORK = 0x0021, /* unused currently */ + QMI_WDS_MESSAGE_PACKET_STATUS = 0x0022, /* unused currently */ +} QmiWdsMessage; + +G_END_DECLS + +#endif /* _LIBQMI_GLIB_QMI_WDS_H_ */ |