From 18c7ea256fb7ae763a93d72f18f6eb1d28af5020 Mon Sep 17 00:00:00 2001 From: Juri Glass Date: Mon, 22 Aug 2011 17:48:20 +0200 Subject: [PATCH] added get_get_profile_list_request --- sml/Makefile | 1 + .../sml/sml_get_profile_list_request.h | 41 +++++++++++++++++++ sml/src/sml_get_profile_list_request.c | 22 ++++++++++ 3 files changed, 64 insertions(+) create mode 100644 sml/include/sml/sml_get_profile_list_request.h create mode 100644 sml/src/sml_get_profile_list_request.c diff --git a/sml/Makefile b/sml/Makefile index bb7c4cc..4f50820 100644 --- a/sml/Makefile +++ b/sml/Makefile @@ -35,6 +35,7 @@ OBJS = \ src/sml_get_proc_parameter_response.o \ src/sml_get_profile_pack_request.o \ src/sml_get_profile_pack_response.o \ + src/sml_get_profile_list_request.o ifeq ($(UNAME), Linux) libsml: $(DYN_LIB) $(ST_LIB) $(OBJ_LIB) diff --git a/sml/include/sml/sml_get_profile_list_request.h b/sml/include/sml/sml_get_profile_list_request.h new file mode 100644 index 0000000..ba771ce --- /dev/null +++ b/sml/include/sml/sml_get_profile_list_request.h @@ -0,0 +1,41 @@ +// Copyright 2011 Juri Glass, Mathias Runge, Nadim El Sayed +// DAI-Labor, TU-Berlin +// +// This file is part of libSML. +// +// libSML is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// libSML 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 General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with libSML. If not, see . + +#ifndef _SML_GET_PROFILE_LIST_REQUEST_H +#define _SML_GET_PROFILE_LIST_REQUEST_H + +#include "sml_get_profile_pack_request.h" + +#ifdef __cplusplus +extern "C" { +#endif + +// Apparently SML_GetProfilePack.Req is the same as SML_GetProfileList.Req +typedef sml_get_profile_pack_request sml_get_profile_list_request; + +#define sml_get_profile_list_request_init() sml_get_profile_pack_request_init() +#define sml_get_profile_list_request_parse(buf) sml_get_profile_pack_request_parse(buf) +#define sml_get_profile_list_request_write(msg, buf) sml_get_profile_pack_request_write(msg, buf) +#define sml_get_profile_list_request_free(msg) sml_get_profile_pack_request_free(msg) + +#ifdef __cplusplus +} +#endif + +#endif + diff --git a/sml/src/sml_get_profile_list_request.c b/sml/src/sml_get_profile_list_request.c new file mode 100644 index 0000000..6ea1b84 --- /dev/null +++ b/sml/src/sml_get_profile_list_request.c @@ -0,0 +1,22 @@ +// Copyright 2011 Juri Glass, Mathias Runge, Nadim El Sayed +// DAI-Labor, TU-Berlin +// +// This file is part of libSML. +// +// libSML is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// libSML 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 General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with libSML. If not, see . + +#include + +// this file is just there for symmetry +