|
|
|
|
@ -10,10 +10,10 @@ Subject: dialog: support profile_get_size for all profiles
|
|
|
|
|
4 files changed, 69 insertions(+)
|
|
|
|
|
|
|
|
|
|
diff --git a/src/modules/dialog/dialog.c b/src/modules/dialog/dialog.c
|
|
|
|
|
index 4cdfe7a..d74a36e 100644
|
|
|
|
|
index 9ccb073..3394ece 100644
|
|
|
|
|
--- a/src/modules/dialog/dialog.c
|
|
|
|
|
+++ b/src/modules/dialog/dialog.c
|
|
|
|
|
@@ -3127,6 +3127,31 @@ static void internal_rpc_profile_get_size(
|
|
|
|
|
@@ -3151,6 +3151,31 @@ static void internal_rpc_profile_get_size(
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -45,7 +45,7 @@ index 4cdfe7a..d74a36e 100644
|
|
|
|
|
/*!
|
|
|
|
|
* \brief Helper function that outputs the dialogs belonging to a given profile via the RPC interface
|
|
|
|
|
* \see rpc_profile_print_dlgs
|
|
|
|
|
@@ -3211,6 +3236,8 @@ static const char *rpc_dlg_set_state_doc[3] = {
|
|
|
|
|
@@ -3235,6 +3260,8 @@ static const char *rpc_dlg_set_state_doc[3] = {
|
|
|
|
|
0};
|
|
|
|
|
static const char *rpc_profile_get_size_doc[2] = {
|
|
|
|
|
"Returns the number of dialogs belonging to a profile", 0};
|
|
|
|
|
@ -54,7 +54,7 @@ index 4cdfe7a..d74a36e 100644
|
|
|
|
|
static const char *rpc_profile_print_dlgs_doc[2] = {
|
|
|
|
|
"Lists all the dialogs belonging to a profile", 0};
|
|
|
|
|
static const char *rpc_dlg_bridge_doc[2] = {
|
|
|
|
|
@@ -3427,6 +3454,11 @@ static void rpc_profile_get_size(rpc_t *rpc, void *c)
|
|
|
|
|
@@ -3451,6 +3478,11 @@ static void rpc_profile_get_size(rpc_t *rpc, void *c)
|
|
|
|
|
}
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
@ -66,7 +66,7 @@ index 4cdfe7a..d74a36e 100644
|
|
|
|
|
static void rpc_profile_print_dlgs(rpc_t *rpc, void *c)
|
|
|
|
|
{
|
|
|
|
|
str profile_name = {NULL, 0};
|
|
|
|
|
@@ -3844,6 +3876,8 @@ static rpc_export_t rpc_methods[] = {
|
|
|
|
|
@@ -3868,6 +3900,8 @@ static rpc_export_t rpc_methods[] = {
|
|
|
|
|
{"dlg.end_dlg", rpc_end_dlg_entry_id, rpc_end_dlg_entry_id_doc, 0},
|
|
|
|
|
{"dlg.profile_get_size", rpc_profile_get_size, rpc_profile_get_size_doc,
|
|
|
|
|
0},
|
|
|
|
|
@ -111,7 +111,7 @@ index 209c4ea..fd71c30 100644
|
|
|
|
|
/*!
|
|
|
|
|
* \brief Search a dialog profile in the global list
|
|
|
|
|
diff --git a/src/modules/dialog/doc/dialog_admin.xml b/src/modules/dialog/doc/dialog_admin.xml
|
|
|
|
|
index 2653f15..4486405 100644
|
|
|
|
|
index 4ae623a..a417212 100644
|
|
|
|
|
--- a/src/modules/dialog/doc/dialog_admin.xml
|
|
|
|
|
+++ b/src/modules/dialog/doc/dialog_admin.xml
|
|
|
|
|
@@ -3070,6 +3070,28 @@ dlg_set_state("early");
|
|
|
|
|
|