event.h   event.h 
skipping to change at line 151 skipping to change at line 151
* *
* @memberof ee_event * @memberof ee_event
* @public * @public
* *
* @param event event to search * @param event event to search
* @param[in] str name of field * @param[in] str name of field
* *
* @return NULL if field was not found (or an error occured); * @return NULL if field was not found (or an error occured);
* pointer to the field otherwise * pointer to the field otherwise
*/ */
static inline struct ee_field* struct ee_field* ee_getEventField(struct ee_event *event, es_str_t *name);
ee_getEventField(struct ee_event *event, es_str_t *name)
{ /**
return(ee_getBucketField(event->fields, name)); * Obtain the string representaton of a field with specified name
} * from given event. The string representation is build in the current
* default encoding (note: different encodings are NOT yet implemented
* at the time of this writing).
*
* @memberof ee_event
* @public
*
* @param event event to search
* @param[in] name name of field
* @param[out] strVal output string with field representation. If NULL
* a new string is generated, the representation
* is APPENDED to the existing string.
*
* @return 0 (EE_OK), if everything went well, EE_NOTFOUND if the
* field could not be found and something else for other
* errors.
*/
int ee_getEventFieldAsString(struct ee_event *event,
es_str_t *name, es_str_t **strVal);
/** /**
* Check if an event is classified via a specific tag. * Check if an event is classified via a specific tag.
* *
* @memberof ee_event * @memberof ee_event
* @public * @public
* *
* @param event event to look at * @param event event to look at
* @param[in] str name of tag * @param[in] str name of tag
* *
 End of changes. 1 change blocks. 
5 lines changed or deleted 23 lines changed or added


 field.h   field.h 
skipping to change at line 183 skipping to change at line 183
* @public * @public
* *
* @param[in] field relevant field * @param[in] field relevant field
* @param[in] n number of the field to return, zero-based (like C arrays) * @param[in] n number of the field to return, zero-based (like C arrays)
* *
* @returns string representation of the n-th field value or NULL in * @returns string representation of the n-th field value or NULL in
* case of error * case of error
*/ */
es_str_t* ee_getFieldValueAsStr(struct ee_field *field, unsigned short n); es_str_t* ee_getFieldValueAsStr(struct ee_field *field, unsigned short n);
/**
* Obtain the string representaton of a field.
* The string representation is build in the current
* default encoding (note: different encodings are NOT yet implemented
* at the time of this writing).
*
* @memberof ee_value
* @public
*
* @param[in] field relevant field
* @param[out] str output string with field representation. If NULL
* a new string is generated, the representation
* is APPENDED to the existing string.
*
* @returns 0 (EE_OK) on success, error code otherwise
*/
int ee_getFieldAsString(struct ee_field *field, es_str_t **str);
#endif /* #ifndef LIBEE_FIELD_H_INCLUDED */ #endif /* #ifndef LIBEE_FIELD_H_INCLUDED */
 End of changes. 1 change blocks. 
0 lines changed or deleted 18 lines changed or added


 libee.h   libee.h 
skipping to change at line 170 skipping to change at line 170
#include "libee/value.h" #include "libee/value.h"
#include "libee/fieldtype.h" #include "libee/fieldtype.h"
#include "libee/field.h" #include "libee/field.h"
#include "libee/fieldbucket.h" #include "libee/fieldbucket.h"
#include "libee/primitivetype.h" #include "libee/primitivetype.h"
#include "libee/tagbucket.h" #include "libee/tagbucket.h"
#include "libee/event.h" #include "libee/event.h"
/* some private error codes (always negative) /* some private error codes (always negative)
*/ */
#define E_ERR -1 #define EE_OK 0
#define EE_ERR -1
#define EE_NOMEM -2 #define EE_NOMEM -2
#define EE_EOF -3 #define EE_EOF -3
#define EE_INVLDFMT -4 #define EE_INVLDFMT -4
#define EE_FIELDHASNAME -5 #define EE_FIELDHASNAME -5
#define EE_TOOMANYVALUES -6 #define EE_TOOMANYVALUES -6
#define EE_WRONGPARSER -7 #define EE_WRONGPARSER -7
#define EE_EINVAL -8 /* invalid value provided on API */ #define EE_EINVAL -8 /* invalid value provided on API */
#define EE_NOTFOUND -9 /* some object could not be found */
/* some important constants */ /* some important constants */
#define LIBEE_CEE_MAX_VALS_PER_FIELD 255 #define LIBEE_CEE_MAX_VALS_PER_FIELD 255
/**< CEE-defined maximum number of values per field. The /**< CEE-defined maximum number of values per field. The
* current value reflects CEE CLS 0.5.1 * current value reflects CEE CLS 0.5.1
*/ */
#endif /* #ifndef EE_H_INCLUDED */ #endif /* #ifndef EE_H_INCLUDED */
 End of changes. 2 change blocks. 
1 lines changed or deleted 3 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/