X-Git-Url: http://git.barrelfish.org/?p=barrelfish;a=blobdiff_plain;f=include%2Foctopus%2Fdefinitions.h;h=3d45ff80d8162e3b6af2322cfa25bf482ae43cae;hp=d7410062d1ed874cf5460a8f828c20d1a15c1d06;hb=bce5518ccc799aab1a40f5bd3d46b2ca83b699ea;hpb=5130b65cf6ef47b5e06251bad7fef1bcbe9a8287 diff --git a/include/octopus/definitions.h b/include/octopus/definitions.h index d741006..3d45ff8 100644 --- a/include/octopus/definitions.h +++ b/include/octopus/definitions.h @@ -15,10 +15,17 @@ * ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Systems Group. */ -#ifndef DIST2_DEFINITIONS_H_ -#define DIST2_DEFINITIONS_H_ +#ifndef OCTOPUS_DEFINITIONS_H_ +#define OCTOPUS_DEFINITIONS_H_ -#define MAX_QUERY_LENGTH (5*1024) +#include + +/* compile max response length as maximum of possible interface sizes */ +//#define MAX_QUERY_LENGTH +//MAX(octopus__get_names_response_output_MAX_ARGUMENT_SIZE, +//MAX(octopus__get_response_output_MAX_ARGUMENT_SIZE, +//octopus__get_with_idcap_response_output_MAX_ARGUMENT_SIZE)) +#define MAX_QUERY_LENGTH 8192 // @@ -26,15 +33,15 @@ // // Be aware: If you change those, adjust the trigger code in prolog as well! -#define DIST_ON_SET (0x1) /*!< Trigger checked for set events. */ -#define DIST_ON_DEL (0x1 << 1) /*!< Trigger checked for del events. */ -#define DIST_ON_PUBLISH (0x1 << 5) /*!< Is Publish/Subscribe Event. */ -#define DIST_PERSIST (0x1 << 2) /*!< Trigger installed until it is removed. */ -#define DIST_ALWAYS_SET (0x1 << 3) /*!< Provided error is ignored (trigger +#define OCT_ON_SET (0x1) /*!< Trigger checked for set events. */ +#define OCT_ON_DEL (0x1 << 1) /*!< Trigger checked for del events. */ +#define OCT_ON_PUBLISH (0x1 << 5) /*!< Is Publish/Subscribe Event. */ +#define OCT_PERSIST (0x1 << 2) /*!< Trigger installed until it is removed. */ +#define OCT_ALWAYS_SET (0x1 << 3) /*!< Provided error is ignored (trigger is always installed). */ -#define DIST_REMOVED (0x1 << 4) /*!< Indicates that the trigger has been +#define OCT_REMOVED (0x1 << 4) /*!< Indicates that the trigger has been removed. Cleaning up any state for this trigger is safe in case this flag is set. */ -#endif /* DIST2_DEFINITIONS_H_ */ +#endif /* OCTOPUS_DEFINITIONS_H_ */