3 * Copyright (C) 2008 iptelorg GmbH
5 * Permission to use, copy, modify, and distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19 * @brief lvalues (assignment)
29 #include "parser/msg_parser.h"
38 LV_NONE, LV_AVP, LV_PVAR
47 #define EQ_T 254 /* k compatibility */
49 typedef int (*log_assign_action_f)(struct sip_msg* msg, struct lvalue *lv);
50 void set_log_assign_action_cb(log_assign_action_f f);
52 /** eval rve and assign the result to lv
55 * @param h - script context
56 * @param msg - sip msg
58 * @param rve - rvalue expression
59 * @return >= 0 on success (expr. bool value), -1 on error
61 int lval_assign(struct run_act_ctx* h, struct sip_msg* msg,
62 struct lvalue* lv, struct rval_expr* rve);
63 #endif /* __lvalue_h_*/