ms_context_assign_string()

master
Yevgen Muntyan 2006-04-19 13:06:05 -05:00
parent 89450f7131
commit 9c9495a644
2 changed files with 24 additions and 0 deletions

View File

@ -262,6 +262,27 @@ ms_context_assign_variable (MSContext *ctx,
}
gboolean
ms_context_assign_string (MSContext *ctx,
const char *name,
const char *str_value)
{
MSValue *value = NULL;
gboolean retval;
g_return_val_if_fail (MS_IS_CONTEXT (ctx), FALSE);
g_return_val_if_fail (name != NULL, FALSE);
if (str_value)
value = ms_value_string (str_value);
retval = ms_context_assign_variable (ctx, name, value);
ms_value_unref (value);
return retval;
}
gboolean
ms_context_assign_positional (MSContext *ctx,
guint n,

View File

@ -92,6 +92,9 @@ gboolean ms_context_assign_variable (MSContext *ctx,
gboolean ms_context_assign_positional (MSContext *ctx,
guint n,
MSValue *value);
gboolean ms_context_assign_string (MSContext *ctx,
const char *name,
const char *value);
MSVariable *ms_context_lookup_var (MSContext *ctx,
const char *name);