3 * \brief Contains definitions that need to be global.
5 * Currently only max query length define which we need on
10 * Copyright (c) 2011, ETH Zurich.
11 * All rights reserved.
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.
18 #ifndef OCTOPUS_DEFINITIONS_H_
19 #define OCTOPUS_DEFINITIONS_H_
21 #define MAX_QUERY_LENGTH (5*1024)
25 // Mode Bitmask (used to distinguish async events sent from server)
28 // Be aware: If you change those, adjust the trigger code in prolog as well!
29 #define OCT_ON_SET (0x1) /*!< Trigger checked for set events. */
30 #define OCT_ON_DEL (0x1 << 1) /*!< Trigger checked for del events. */
31 #define OCT_ON_PUBLISH (0x1 << 5) /*!< Is Publish/Subscribe Event. */
32 #define OCT_PERSIST (0x1 << 2) /*!< Trigger installed until it is removed. */
33 #define OCT_ALWAYS_SET (0x1 << 3) /*!< Provided error is ignored (trigger
34 is always installed). */
35 #define OCT_REMOVED (0x1 << 4) /*!< Indicates that the trigger has been
36 removed. Cleaning up any state for
37 this trigger is safe in case this
40 #endif /* OCTOPUS_DEFINITIONS_H_ */