diff options
author | Dan Williams <dcbw@redhat.com> | 2011-10-04 11:16:00 -0500 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2011-10-04 11:16:39 -0500 |
commit | c61423f2cfb201a610a5708a7ea19175a2e20750 (patch) | |
tree | caafde7f8dd52f9e4397554936fafa2f151eb4ce /libwmc/src/commands.h | |
parent | a7637ddf8786e54bd1bb7f667896abd168ceba08 (diff) |
wmc: add initial command parsing and response handling
Diffstat (limited to 'libwmc/src/commands.h')
-rw-r--r-- | libwmc/src/commands.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/libwmc/src/commands.h b/libwmc/src/commands.h new file mode 100644 index 00000000..dba839b5 --- /dev/null +++ b/libwmc/src/commands.h @@ -0,0 +1,41 @@ +/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * Copyright (C) 2011 Red Hat, Inc. + * + * This program is free software: you can redistribute it and/or + * modify it under the terms of version 2 of the GNU General Public + * License as published by the Free Software Foundation + * + * This program 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 this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef LIBWMC_COMMANDS_H +#define LIBWMC_COMMANDS_H + +#include "result.h" + +/**********************************************************************/ + +/* Generic enums */ + + +/**********************************************************************/ + +#define WMC_CMD_DEVICE_INFO_ITEM_MANUFACTURER "manufacturer" +#define WMC_CMD_DEVICE_INFO_ITEM_MODEL "model" +#define WMC_CMD_DEVICE_INFO_ITEM_FW_REVISION "firmware-revision" +#define WMC_CMD_DEVICE_INFO_ITEM_HW_REVISION "hardware-revision" + +size_t wmc_cmd_device_info_new (char *buf, size_t buflen); + +WmcResult * wmc_cmd_device_info_result (const char *buf, size_t len); + +/**********************************************************************/ + +#endif /* LIBWMC_COMMANDS_H */ |