OSSP CVS Repository

ossp - Difference in ossp-pkg/var/var.h versions 1.26 and 1.27
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/var/var.h 1.26 -> 1.27

--- var.h        2002/02/28 12:40:01     1.26
+++ var.h        2002/03/04 11:53:27     1.27
@@ -35,6 +35,8 @@
 /* Error codes */
 typedef enum {
     VAR_ERR_CALLBACK                        = -64,
+    VAR_ERR_UNDEFINED_OPERATION             = -44,
+    VAR_ERR_MALFORMED_OPERATION_ARGUMENTS   = -43,
     VAR_ERR_INVALID_CHAR_IN_LOOP_LIMITS     = -42,
     VAR_ERR_UNTERMINATED_LOOP_CONSTRUCT     = -41,
     VAR_ERR_DIVISION_BY_ZERO_IN_INDEX       = -40,
@@ -85,7 +87,8 @@
 
 typedef enum {
     VAR_CONFIG_SYNTAX,
-    VAR_CONFIG_CB_VALUE
+    VAR_CONFIG_CB_VALUE,
+    VAR_CONFIG_CB_OPERATION
 } var_config_t;
 
 typedef struct {
@@ -105,6 +108,14 @@
     const char **val_ptr, size_t *val_len, size_t *val_size
 );
 
+typedef var_rc_t (*var_cb_operation_t)(
+    var_t *var, void *ctx,
+    const char  *op_ptr, size_t op_len,
+    const char  *arg_ptr, size_t arg_len,
+    const char  *val_ptr, size_t val_len,
+    const char **out_ptr, size_t *out_len, size_t *out_size
+);
+
 extern const char var_id[];
 
 var_rc_t  var_create    (var_t **var);

CVSTrac 2.0.1