Module: sip-router
Branch: master
Commit: bc780f6769581fd6260ba8d3f207ca2dd305970d
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=bc780f6…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Dec 21 19:43:53 2012 +0100
modules_s/gflags: renamed to uid_gflags
- script flag functions got an 'u' in name to allow usage together with
cfgutils module
---
modules_s/{gflags => uid_gflags}/Makefile | 2 +-
modules_s/{gflags => uid_gflags}/README | 22 ++++++++++----------
modules_s/{gflags => uid_gflags}/doc/Makefile | 2 +-
modules_s/{gflags => uid_gflags}/doc/fifo.xml | 0
modules_s/{gflags => uid_gflags}/doc/functions.xml | 20 +++++++++---------
modules_s/{gflags => uid_gflags}/doc/params.xml | 0
.../gflags.xml => uid_gflags/doc/uid_gflags.xml} | 6 ++--
modules_s/{gflags => uid_gflags}/doc/xmlrpc.xml | 0
.../{gflags/gflags.c => uid_gflags/uid_gflags.c} | 10 ++++----
9 files changed, 31 insertions(+), 31 deletions(-)
diff --git a/modules_s/gflags/Makefile b/modules_s/uid_gflags/Makefile
similarity index 93%
rename from modules_s/gflags/Makefile
rename to modules_s/uid_gflags/Makefile
index 30696ee..b536858 100644
--- a/modules_s/gflags/Makefile
+++ b/modules_s/uid_gflags/Makefile
@@ -7,7 +7,7 @@
include ../../Makefile.defs
auto_gen=
-NAME=gflags.so
+NAME=uid_gflags.so
LIBS=
DEFS+=-DSER_MOD_INTERFACE
diff --git a/modules_s/gflags/README b/modules_s/uid_gflags/README
similarity index 91%
rename from modules_s/gflags/README
rename to modules_s/uid_gflags/README
index 2fa3f01..8b25016 100644
--- a/modules_s/gflags/README
+++ b/modules_s/uid_gflags/README
@@ -1,10 +1,10 @@
-1. Gflags Module
+1. UID Gflags Module
Jiri Kuthan
<jiri(a)iptel.org>
- Copyright © 2004 FhG FOKUS
+ Copyright � 2004 FhG FOKUS
__________________________________________________________________
1.1. Overview
@@ -15,8 +15,8 @@ Jiri Kuthan
1.3. Functions
1.3.1. set_gflag(flag_num)
- 1.3.2. reset_gflag(flag_num)
- 1.3.3. is_gflag(flag_num)
+ 1.3.2. reset_ugflag(flag_num)
+ 1.3.3. is_ugflag(flag_num)
1.4. FIFO Interface
1.5. XMLRPC Interface
@@ -32,7 +32,7 @@ Jiri Kuthan
Global flags can be accessed from the configuration script, for
example:
-if (is_gflag("1")) {
+if (is_ugflag("1")) {
t_relay_to_udp("10.0.0.1", "5060");
} else {
t_relay_to_udp("10.0.0.2", "5060");
@@ -59,22 +59,22 @@ if (is_gflag("1")) {
Set the flag identified by flag_num to 1. The range of flag_num is 0 to
31.
- Example 1. set_gflag usage
+ Example 1. set_ugflag usage
...
-set_gflag("2");
+set_ugflag("2");
...
-1.3.2. reset_gflag(flag_num)
+1.3.2. reset_ugflag(flag_num)
Set the flag identified by flag_num to 0. The range of flag_num is 0 to
31.
- Example 2. reset_gflag usage
+ Example 2. reset_ugflag usage
...
-reset_gflag("2");
+reset_ugflag("2");
...
-1.3.3. is_gflag(flag_num)
+1.3.3. is_ugflag(flag_num)
Returns 1 when flag identified by flag_num is set, 0 otherwise. The
range of flag_num parameter is 0 to 31.
diff --git a/modules_s/gflags/doc/Makefile b/modules_s/uid_gflags/doc/Makefile
similarity index 75%
rename from modules_s/gflags/doc/Makefile
rename to modules_s/uid_gflags/doc/Makefile
index 28ffa9b..c8f8a80 100644
--- a/modules_s/gflags/doc/Makefile
+++ b/modules_s/uid_gflags/doc/Makefile
@@ -1,4 +1,4 @@
-docs = gflags.xml
+docs = uid_gflags.xml
docbook_dir=../../../docbook
include $(docbook_dir)/Makefile.module
diff --git a/modules_s/gflags/doc/fifo.xml b/modules_s/uid_gflags/doc/fifo.xml
similarity index 100%
rename from modules_s/gflags/doc/fifo.xml
rename to modules_s/uid_gflags/doc/fifo.xml
diff --git a/modules_s/gflags/doc/functions.xml b/modules_s/uid_gflags/doc/functions.xml
similarity index 65%
rename from modules_s/gflags/doc/functions.xml
rename to modules_s/uid_gflags/doc/functions.xml
index f3e22fa..912ea4c 100644
--- a/modules_s/gflags/doc/functions.xml
+++ b/modules_s/uid_gflags/doc/functions.xml
@@ -2,46 +2,46 @@
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
-<section id="gflags.functions"
xmlns:xi="http://www.w3.org/2001/XInclude">
+<section id="uid_gflags.functions"
xmlns:xi="http://www.w3.org/2001/XInclude">
<sectioninfo>
</sectioninfo>
<title>Functions</title>
- <section id="set_gflag">
+ <section id="set_ugflag">
<title><function>set_gflag(flag_num)</function></title>
<para>
Set the flag identified by flag_num to 1. The range of
flag_num is 0 to 31.
</para>
<example>
- <title><function>set_gflag</function> usage</title>
+ <title><function>set_ugflag</function> usage</title>
<programlisting>
...
-set_gflag("2");
+set_ugflag("2");
...
</programlisting>
</example>
</section>
- <section id="reset_gflag">
- <title><function>reset_gflag(flag_num)</function></title>
+ <section id="reset_ugflag">
+ <title><function>reset_ugflag(flag_num)</function></title>
<para>
Set the flag identified by flag_num to 0. The range of
flag_num is 0 to 31.
</para>
<example>
- <title><function>reset_gflag</function> usage</title>
+ <title><function>reset_ugflag</function> usage</title>
<programlisting>
...
-reset_gflag("2");
+reset_ugflag("2");
...
</programlisting>
</example>
</section>
- <section id="is_gflag">
- <title><function
moreinfo="none">is_gflag(flag_num)</function></title>
+ <section id="is_ugflag">
+ <title><function
moreinfo="none">is_ugflag(flag_num)</function></title>
<para>
Returns 1 when flag identified by flag_num is set, 0
otherwise. The range of flag_num parameter is 0 to 31.
diff --git a/modules_s/gflags/doc/params.xml b/modules_s/uid_gflags/doc/params.xml
similarity index 100%
rename from modules_s/gflags/doc/params.xml
rename to modules_s/uid_gflags/doc/params.xml
diff --git a/modules_s/gflags/doc/gflags.xml b/modules_s/uid_gflags/doc/uid_gflags.xml
similarity index 94%
rename from modules_s/gflags/doc/gflags.xml
rename to modules_s/uid_gflags/doc/uid_gflags.xml
index 907650d..d3d41ed 100644
--- a/modules_s/gflags/doc/gflags.xml
+++ b/modules_s/uid_gflags/doc/uid_gflags.xml
@@ -17,9 +17,9 @@
</copyright>
</sectioninfo>
- <title>Gflags Module</title>
+ <title>UID Gflags Module</title>
- <section id="gflags.overview">
+ <section id="uid_gflags.overview">
<title>Overview</title>
<para>
The module implements global flags. The difference between the
@@ -33,7 +33,7 @@
Global flags can be accessed from the configuration script, for example:
</para>
<programlisting>
-if (is_gflag("1")) {
+if (is_ugflag("1")) {
t_relay_to_udp("10.0.0.1", "5060");
} else {
t_relay_to_udp("10.0.0.2", "5060");
diff --git a/modules_s/gflags/doc/xmlrpc.xml b/modules_s/uid_gflags/doc/xmlrpc.xml
similarity index 100%
rename from modules_s/gflags/doc/xmlrpc.xml
rename to modules_s/uid_gflags/doc/xmlrpc.xml
diff --git a/modules_s/gflags/gflags.c b/modules_s/uid_gflags/uid_gflags.c
similarity index 97%
rename from modules_s/gflags/gflags.c
rename to modules_s/uid_gflags/uid_gflags.c
index 280533b..864eb39 100644
--- a/modules_s/gflags/gflags.c
+++ b/modules_s/uid_gflags/uid_gflags.c
@@ -90,10 +90,10 @@ static avp_list_t *avps_2;
static rpc_export_t rpc_methods[];
static cmd_export_t cmds[]={
- {"set_gflag", set_gflag, 1, fixup_int_1,
REQUEST_ROUTE|FAILURE_ROUTE|ONREPLY_ROUTE},
- {"reset_gflag", reset_gflag, 1, fixup_int_1,
REQUEST_ROUTE|FAILURE_ROUTE|ONREPLY_ROUTE},
- {"is_gflag", is_gflag, 1, fixup_int_1,
REQUEST_ROUTE|FAILURE_ROUTE|ONREPLY_ROUTE},
- {"flush_gflags", flush_gflags, 0, 0,
REQUEST_ROUTE|FAILURE_ROUTE|ONREPLY_ROUTE},
+ {"set_ugflag", set_gflag, 1, fixup_int_1,
REQUEST_ROUTE|FAILURE_ROUTE|ONREPLY_ROUTE},
+ {"reset_ugflag", reset_gflag, 1, fixup_int_1,
REQUEST_ROUTE|FAILURE_ROUTE|ONREPLY_ROUTE},
+ {"is_ugflag", is_gflag, 1, fixup_int_1,
REQUEST_ROUTE|FAILURE_ROUTE|ONREPLY_ROUTE},
+ {"flush_ugflags", flush_gflags, 0, 0,
REQUEST_ROUTE|FAILURE_ROUTE|ONREPLY_ROUTE},
{0, 0, 0, 0, 0}
};
@@ -110,7 +110,7 @@ static param_export_t params[]={
};
struct module_exports exports = {
- "gflags",
+ "uid_gflags",
cmds,
rpc_methods, /* RPC methods */
params,