Paho MQTT C Client Library: MQTTSubscribeOpts.h Source File

| Paho MQTT C Client Library

MQTTSubscribeOpts.h
Go to the documentation of this file.
1 /*******************************************************************************
2 * Copyright (c) 2018 IBM Corp.
3 *
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v2.0
6 * and Eclipse Distribution License v1.0 which accompany this distribution.
7 *
8 * The Eclipse Public License is available at
9 * https://www.eclipse.org/legal/epl-2.0/
10 * and the Eclipse Distribution License is available at
11 * http://www.eclipse.org/org/documents/edl-v10.php.
12 *
13 * Contributors:
14 * Ian Craggs - initial API and implementation and/or initial documentation
15 *******************************************************************************/
16
17 #if !defined(SUBOPTS_H)
18 #define SUBOPTS_H
19
21 typedef struct MQTTSubscribe_options
22 {
24 char struct_id[4];
27 int struct_version;
31 unsigned char noLocal;
36 unsigned char retainAsPublished;
41 unsigned char retainHandling;
42 } MQTTSubscribe_options;
43
44 #define MQTTSubscribe_options_initializer { {'M', 'Q', 'S', 'O'}, 0, 0, 0, 0 }
45
46 #endif
MQTTSubscribe_options
struct MQTTSubscribe_options MQTTSubscribe_options
MQTTSubscribe_options
Definition: MQTTSubscribeOpts.h:22
MQTTSubscribe_options::struct_version
int struct_version
Definition: MQTTSubscribeOpts.h:27
MQTTSubscribe_options::retainHandling
unsigned char retainHandling
Definition: MQTTSubscribeOpts.h:41
MQTTSubscribe_options::retainAsPublished
unsigned char retainAsPublished
Definition: MQTTSubscribeOpts.h:36
MQTTSubscribe_options::struct_id
char struct_id[4]
Definition: MQTTSubscribeOpts.h:24
MQTTSubscribe_options::noLocal
unsigned char noLocal
Definition: MQTTSubscribeOpts.h:31