1/** 2 * \file 3 * \brief Contains definitions that need to be global. 4 * 5 * Currently only max query length define which we need on 6 * server and client. 7 */ 8 9/* 10 * Copyright (c) 2011, ETH Zurich. 11 * All rights reserved. 12 * 13 * This file is distributed under the terms in the attached LICENSE file. 14 * If you do not find this file, copies can be found by writing to: 15 * ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Systems Group. 16 */ 17 18#ifndef OCTOPUS_DEFINITIONS_H_ 19#define OCTOPUS_DEFINITIONS_H_ 20 21#include <bitmacros.h> 22 23/* compile max response length as maximum of possible interface sizes */ 24//#define MAX_QUERY_LENGTH 25//MAX(octopus__get_names_response_output_MAX_ARGUMENT_SIZE, 26//MAX(octopus__get_response_output_MAX_ARGUMENT_SIZE, 27//octopus__get_with_idcap_response_output_MAX_ARGUMENT_SIZE)) 28#define MAX_QUERY_LENGTH 8192 29 30 31// 32// Mode Bitmask (used to distinguish async events sent from server) 33// 34 35// Be aware: If you change those, adjust the trigger code in prolog as well! 36#define OCT_ON_SET (0x1) /*!< Trigger checked for set events. */ 37#define OCT_ON_DEL (0x1 << 1) /*!< Trigger checked for del events. */ 38#define OCT_ON_PUBLISH (0x1 << 5) /*!< Is Publish/Subscribe Event. */ 39#define OCT_PERSIST (0x1 << 2) /*!< Trigger installed until it is removed. */ 40#define OCT_ALWAYS_SET (0x1 << 3) /*!< Provided error is ignored (trigger 41 is always installed). */ 42#define OCT_REMOVED (0x1 << 4) /*!< Indicates that the trigger has been 43 removed. Cleaning up any state for 44 this trigger is safe in case this 45 flag is set. */ 46 47#endif /* OCTOPUS_DEFINITIONS_H_ */ 48