mirror of
https://github.com/weechat/weechat.git
synced 2026-07-07 10:13:12 +02:00
Update developer guide (add 50% of new C API functions)
This commit is contained in:
+5
-5
@@ -77,7 +77,7 @@ IF(BUILD_HTML OR BUILD_PDF)
|
||||
OUTPUT_VARIABLE DOC_DATE
|
||||
)
|
||||
STRING(REPLACE "\n" "" DOC_DATE "${DOC_DATE}")
|
||||
|
||||
|
||||
CONFIGURE_FILE(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/date.xml.in
|
||||
${CMAKE_CURRENT_BINARY_DIR}/date.xml
|
||||
@@ -116,7 +116,7 @@ IF(BUILD_HTML OR BUILD_PDF)
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/weechat-html-one.xsl.in
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/weechat-html.xsl.in
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/weechat-doc.css
|
||||
COMMENT "Building html doc (${dlang})"
|
||||
COMMENT "Building user guide - html doc (${dlang})"
|
||||
)
|
||||
ADD_CUSTOM_TARGET(doc-user-html-${dlang} ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/html/${dlang}/user/index.html)
|
||||
ADD_CUSTOM_TARGET(doc-user-html-one-${dlang} ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/html-one/${dlang}/user/weechat_user.${dlang}.html)
|
||||
@@ -145,7 +145,7 @@ IF(BUILD_HTML OR BUILD_PDF)
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/${dlang}/autogen/*
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/date.xml.in
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/weechat-html-one.xsl.in
|
||||
COMMENT "Building pdf doc (${dlang})"
|
||||
COMMENT "Building user guide - pdf doc (${dlang})"
|
||||
)
|
||||
ADD_CUSTOM_TARGET(doc-user-pdf-${dlang} ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/pdf/${dlang}/user/weechat_user.${dlang}.pdf)
|
||||
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/pdf/${dlang}/user/weechat_user.${dlang}.pdf DESTINATION share/doc/${PROJECT_NAME})
|
||||
@@ -184,7 +184,7 @@ IF(BUILD_HTML OR BUILD_PDF)
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/weechat-html-one.xsl.in
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/weechat-html.xsl.in
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/weechat-doc.css
|
||||
COMMENT "Building html doc (${dlang})"
|
||||
COMMENT "Building developer guide - html doc (${dlang})"
|
||||
)
|
||||
ADD_CUSTOM_TARGET(doc-dev-html-${dlang} ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/html/${dlang}/dev/index.html)
|
||||
ADD_CUSTOM_TARGET(doc-dev-html-one-${dlang} ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/html-one/${dlang}/dev/weechat_dev.${dlang}.html)
|
||||
@@ -213,7 +213,7 @@ IF(BUILD_HTML OR BUILD_PDF)
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/${dlang}/autogen/*
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/date.xml.in
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/weechat-html-one.xsl.in
|
||||
COMMENT "Building pdf doc (${dlang})"
|
||||
COMMENT "Building developer guide - pdf doc (${dlang})"
|
||||
)
|
||||
ADD_CUSTOM_TARGET(doc-dev-pdf-${dlang} ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/pdf/${dlang}/dev/weechat_dev.${dlang}.pdf)
|
||||
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/pdf/${dlang}/dev/weechat_dev.${dlang}.pdf DESTINATION share/doc/${PROJECT_NAME})
|
||||
|
||||
+17
-17
@@ -48,29 +48,29 @@ BOOK_COMMON_INCLUDE = authors.$(LANGCODE).xml \
|
||||
intro.$(LANGCODE).xml
|
||||
|
||||
BOOK_USER = weechat_user.$(LANGCODE)
|
||||
BOOK_USER_INCLUDE = user/install.$(LANGCODE).xml \
|
||||
user/usage.$(LANGCODE).xml \
|
||||
user/plugins.$(LANGCODE).xml \
|
||||
user/plugin_alias.$(LANGCODE).xml \
|
||||
user/plugin_aspell.$(LANGCODE).xml \
|
||||
user/plugin_charset.$(LANGCODE).xml \
|
||||
user/plugin_fifo.$(LANGCODE).xml \
|
||||
user/plugin_irc.$(LANGCODE).xml \
|
||||
user/plugin_logger.$(LANGCODE).xml \
|
||||
user/plugin_scripts.$(LANGCODE).xml \
|
||||
BOOK_USER_INCLUDE = user/install.$(LANGCODE).xml \
|
||||
user/usage.$(LANGCODE).xml \
|
||||
user/plugins.$(LANGCODE).xml \
|
||||
user/plugin_alias.$(LANGCODE).xml \
|
||||
user/plugin_aspell.$(LANGCODE).xml \
|
||||
user/plugin_charset.$(LANGCODE).xml \
|
||||
user/plugin_fifo.$(LANGCODE).xml \
|
||||
user/plugin_irc.$(LANGCODE).xml \
|
||||
user/plugin_logger.$(LANGCODE).xml \
|
||||
user/plugin_scripts.$(LANGCODE).xml \
|
||||
user/plugin_xfer.$(LANGCODE).xml
|
||||
|
||||
BOOK_DEV = weechat_dev.$(LANGCODE)
|
||||
BOOK_DEV_INCLUDE = dev/plugin_api.$(LANGCODE).xml \
|
||||
dev/plugin_scripts.$(LANGCODE).xml \
|
||||
dev/plugins.$(LANGCODE).xml \
|
||||
dev/weechat_dev.$(LANGCODE).xml
|
||||
BOOK_DEV_INCLUDE = dev/plugins.$(LANGCODE).xml \
|
||||
dev/plugin_api.$(LANGCODE).xml \
|
||||
dev/plugin_c_api.$(LANGCODE).xml \
|
||||
dev/plugin_script_api.$(LANGCODE).xml
|
||||
|
||||
QUICKSTART = weechat_quickstart.$(LANGCODE).txt
|
||||
|
||||
EXTRA_DIST = $(BOOK_AUTOGEN_INCLUDE) $(BOOK_COMMON_INCLUDE) \
|
||||
user/$(BOOK_USER).xml $(BOOK_USER_INCLUDE) \
|
||||
dev/$(BOOK_DEV).xml $(BOOK_DEV_INCLUDE) \
|
||||
EXTRA_DIST = $(BOOK_AUTOGEN_INCLUDE) $(BOOK_COMMON_INCLUDE) \
|
||||
user/$(BOOK_USER).xml $(BOOK_USER_INCLUDE) \
|
||||
dev/$(BOOK_DEV).xml $(BOOK_DEV_INCLUDE) \
|
||||
$(QUICKSTART)
|
||||
|
||||
if DBLATEX_FOUND
|
||||
|
||||
+4
-3499
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -133,8 +133,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
</informaltable>
|
||||
</para>
|
||||
|
||||
<!-- &plugin_api.de.xml; -->
|
||||
|
||||
<section id="secCompilePlugin">
|
||||
<title>Übersetzen eines Plugins</title>
|
||||
|
||||
@@ -244,14 +242,4 @@ weechat_plugin_end (struct t_weechat_plugin *plugin)
|
||||
|
||||
</section>
|
||||
|
||||
&plugin_irc.de.xml;
|
||||
|
||||
<!-- &plugin_charset.de.xml; -->
|
||||
|
||||
&plugin_fifo.de.xml;
|
||||
|
||||
<!-- &plugin_scripts.de.xml; -->
|
||||
|
||||
&plugin_xfer.de.xml;
|
||||
|
||||
</chapter>
|
||||
|
||||
@@ -30,11 +30,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
%include_autogen.xml;
|
||||
|
||||
<!-- ***** written by hand: ***** -->
|
||||
<!ENTITY intro.de.xml SYSTEM "intro.de.xml">
|
||||
<!ENTITY plugins.de.xml SYSTEM "plugins.de.xml">
|
||||
<!ENTITY plugin_api.de.xml SYSTEM "plugin_api.de.xml">
|
||||
<!ENTITY plugin_scripts.de.xml SYSTEM "plugin_scripts.de.xml">
|
||||
<!ENTITY authors.de.xml SYSTEM "authors.de.xml">
|
||||
<!ENTITY intro.de.xml SYSTEM "intro.de.xml">
|
||||
<!ENTITY plugins.de.xml SYSTEM "plugins.de.xml">
|
||||
<!ENTITY plugin_api.de.xml SYSTEM "plugin_api.de.xml">
|
||||
<!ENTITY plugin_c_api.de.xml SYSTEM "plugin_c_api.de.xml">
|
||||
<!ENTITY plugin_script_api.de.xml SYSTEM "plugin_script_api.de.xml">
|
||||
<!ENTITY authors.de.xml SYSTEM "authors.de.xml">
|
||||
]>
|
||||
|
||||
<book lang="de">
|
||||
@@ -100,7 +101,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
&intro.de.xml;
|
||||
|
||||
<!-- &plugins.de.xml; -->
|
||||
&plugins.de.xml;
|
||||
|
||||
&plugin_api.de.xml;
|
||||
|
||||
&authors.de.xml;
|
||||
|
||||
|
||||
+17
-17
@@ -48,29 +48,29 @@ BOOK_COMMON_INCLUDE = authors.$(LANGCODE).xml \
|
||||
intro.$(LANGCODE).xml
|
||||
|
||||
BOOK_USER = weechat_user.$(LANGCODE)
|
||||
BOOK_USER_INCLUDE = user/install.$(LANGCODE).xml \
|
||||
user/usage.$(LANGCODE).xml \
|
||||
user/plugins.$(LANGCODE).xml \
|
||||
user/plugin_alias.$(LANGCODE).xml \
|
||||
user/plugin_aspell.$(LANGCODE).xml \
|
||||
user/plugin_charset.$(LANGCODE).xml \
|
||||
user/plugin_fifo.$(LANGCODE).xml \
|
||||
user/plugin_irc.$(LANGCODE).xml \
|
||||
user/plugin_logger.$(LANGCODE).xml \
|
||||
user/plugin_scripts.$(LANGCODE).xml \
|
||||
BOOK_USER_INCLUDE = user/install.$(LANGCODE).xml \
|
||||
user/usage.$(LANGCODE).xml \
|
||||
user/plugins.$(LANGCODE).xml \
|
||||
user/plugin_alias.$(LANGCODE).xml \
|
||||
user/plugin_aspell.$(LANGCODE).xml \
|
||||
user/plugin_charset.$(LANGCODE).xml \
|
||||
user/plugin_fifo.$(LANGCODE).xml \
|
||||
user/plugin_irc.$(LANGCODE).xml \
|
||||
user/plugin_logger.$(LANGCODE).xml \
|
||||
user/plugin_scripts.$(LANGCODE).xml \
|
||||
user/plugin_xfer.$(LANGCODE).xml
|
||||
|
||||
BOOK_DEV = weechat_dev.$(LANGCODE)
|
||||
BOOK_DEV_INCLUDE = dev/plugin_api.$(LANGCODE).xml \
|
||||
dev/plugin_scripts.$(LANGCODE).xml \
|
||||
dev/plugins.$(LANGCODE).xml \
|
||||
dev/weechat_dev.$(LANGCODE).xml
|
||||
BOOK_DEV_INCLUDE = dev/plugins.$(LANGCODE).xml \
|
||||
dev/plugin_api.$(LANGCODE).xml \
|
||||
dev/plugin_c_api.$(LANGCODE).xml \
|
||||
dev/plugin_script_api.$(LANGCODE).xml
|
||||
|
||||
QUICKSTART = weechat_quickstart.$(LANGCODE).txt
|
||||
|
||||
EXTRA_DIST = $(BOOK_AUTOGEN_INCLUDE) $(BOOK_COMMON_INCLUDE) \
|
||||
user/$(BOOK_USER).xml $(BOOK_USER_INCLUDE) \
|
||||
dev/$(BOOK_DEV).xml $(BOOK_DEV_INCLUDE) \
|
||||
EXTRA_DIST = $(BOOK_AUTOGEN_INCLUDE) $(BOOK_COMMON_INCLUDE) \
|
||||
user/$(BOOK_USER).xml $(BOOK_USER_INCLUDE) \
|
||||
dev/$(BOOK_DEV).xml $(BOOK_DEV_INCLUDE) \
|
||||
$(QUICKSTART)
|
||||
|
||||
if DBLATEX_FOUND
|
||||
|
||||
+4
-4701
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -21,8 +21,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
-->
|
||||
|
||||
<section id="secScriptsPlugins">
|
||||
<title>Scripts plugins</title>
|
||||
<section id="secScriptPluginAPI">
|
||||
<title>Script plugin API</title>
|
||||
|
||||
<!--
|
||||
|
||||
<para>
|
||||
Four plugins are provided with WeeChat to use script languages:
|
||||
@@ -2846,4 +2848,6 @@ end
|
||||
|
||||
</section>
|
||||
|
||||
-->
|
||||
|
||||
</section>
|
||||
@@ -129,8 +129,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
</informaltable>
|
||||
</para>
|
||||
|
||||
&plugin_api.en.xml;
|
||||
|
||||
<section id="secCompilePlugin">
|
||||
<title>Compile plugin</title>
|
||||
|
||||
@@ -237,14 +235,4 @@ weechat_plugin_end (struct t_weechat_plugin *plugin)
|
||||
|
||||
</section>
|
||||
|
||||
&plugin_irc.en.xml;
|
||||
|
||||
<!-- &plugin_charset.en.xml; -->
|
||||
|
||||
&plugin_fifo.en.xml;
|
||||
|
||||
<!-- &plugin_scripts.en.xml; -->
|
||||
|
||||
&plugin_xfer.en.xml;
|
||||
|
||||
</chapter>
|
||||
|
||||
@@ -30,11 +30,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
%include_autogen.xml;
|
||||
|
||||
<!-- ***** written by hand: ***** -->
|
||||
<!ENTITY intro.en.xml SYSTEM "intro.en.xml">
|
||||
<!ENTITY plugins.en.xml SYSTEM "plugins.en.xml">
|
||||
<!ENTITY plugin_api.en.xml SYSTEM "plugin_api.en.xml">
|
||||
<!ENTITY plugin_scripts.en.xml SYSTEM "plugin_scripts.en.xml">
|
||||
<!ENTITY authors.en.xml SYSTEM "authors.en.xml">
|
||||
<!ENTITY intro.en.xml SYSTEM "intro.en.xml">
|
||||
<!ENTITY plugins.en.xml SYSTEM "plugins.en.xml">
|
||||
<!ENTITY plugin_api.en.xml SYSTEM "plugin_api.en.xml">
|
||||
<!ENTITY plugin_c_api.en.xml SYSTEM "plugin_c_api.en.xml">
|
||||
<!ENTITY plugin_script_api.en.xml SYSTEM "plugin_script_api.en.xml">
|
||||
<!ENTITY authors.en.xml SYSTEM "authors.en.xml">
|
||||
]>
|
||||
|
||||
<book lang="en">
|
||||
@@ -94,7 +95,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
&intro.en.xml;
|
||||
|
||||
<!-- &plugins.en.xml; -->
|
||||
&plugins.en.xml;
|
||||
|
||||
&plugin_api.en.xml;
|
||||
|
||||
&authors.en.xml;
|
||||
|
||||
|
||||
+17
-17
@@ -48,29 +48,29 @@ BOOK_COMMON_INCLUDE = authors.$(LANGCODE).xml \
|
||||
intro.$(LANGCODE).xml
|
||||
|
||||
BOOK_USER = weechat_user.$(LANGCODE)
|
||||
BOOK_USER_INCLUDE = user/install.$(LANGCODE).xml \
|
||||
user/usage.$(LANGCODE).xml \
|
||||
user/plugins.$(LANGCODE).xml \
|
||||
user/plugin_alias.$(LANGCODE).xml \
|
||||
user/plugin_aspell.$(LANGCODE).xml \
|
||||
user/plugin_charset.$(LANGCODE).xml \
|
||||
user/plugin_fifo.$(LANGCODE).xml \
|
||||
user/plugin_irc.$(LANGCODE).xml \
|
||||
user/plugin_logger.$(LANGCODE).xml \
|
||||
user/plugin_scripts.$(LANGCODE).xml \
|
||||
BOOK_USER_INCLUDE = user/install.$(LANGCODE).xml \
|
||||
user/usage.$(LANGCODE).xml \
|
||||
user/plugins.$(LANGCODE).xml \
|
||||
user/plugin_alias.$(LANGCODE).xml \
|
||||
user/plugin_aspell.$(LANGCODE).xml \
|
||||
user/plugin_charset.$(LANGCODE).xml \
|
||||
user/plugin_fifo.$(LANGCODE).xml \
|
||||
user/plugin_irc.$(LANGCODE).xml \
|
||||
user/plugin_logger.$(LANGCODE).xml \
|
||||
user/plugin_scripts.$(LANGCODE).xml \
|
||||
user/plugin_xfer.$(LANGCODE).xml
|
||||
|
||||
BOOK_DEV = weechat_dev.$(LANGCODE)
|
||||
BOOK_DEV_INCLUDE = dev/plugin_api.$(LANGCODE).xml \
|
||||
dev/plugin_scripts.$(LANGCODE).xml \
|
||||
dev/plugins.$(LANGCODE).xml \
|
||||
dev/weechat_dev.$(LANGCODE).xml
|
||||
BOOK_DEV_INCLUDE = dev/plugins.$(LANGCODE).xml \
|
||||
dev/plugin_api.$(LANGCODE).xml \
|
||||
dev/plugin_c_api.$(LANGCODE).xml \
|
||||
dev/plugin_script_api.$(LANGCODE).xml
|
||||
|
||||
QUICKSTART = weechat_quickstart.$(LANGCODE).txt
|
||||
|
||||
EXTRA_DIST = $(BOOK_AUTOGEN_INCLUDE) $(BOOK_COMMON_INCLUDE) \
|
||||
user/$(BOOK_USER).xml $(BOOK_USER_INCLUDE) \
|
||||
dev/$(BOOK_DEV).xml $(BOOK_DEV_INCLUDE) \
|
||||
EXTRA_DIST = $(BOOK_AUTOGEN_INCLUDE) $(BOOK_COMMON_INCLUDE) \
|
||||
user/$(BOOK_USER).xml $(BOOK_USER_INCLUDE) \
|
||||
dev/$(BOOK_DEV).xml $(BOOK_DEV_INCLUDE) \
|
||||
$(QUICKSTART)
|
||||
|
||||
if DBLATEX_FOUND
|
||||
|
||||
+4
-3534
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -132,8 +132,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
</informaltable>
|
||||
</para>
|
||||
|
||||
<!-- &plugin_api.fr.xml; -->
|
||||
|
||||
<section id="secCompilePlugin">
|
||||
<title>Compiler l'extension</title>
|
||||
|
||||
@@ -243,14 +241,4 @@ weechat_plugin_end (struct t_weechat_plugin *plugin)
|
||||
|
||||
</section>
|
||||
|
||||
&plugin_irc.fr.xml;
|
||||
|
||||
<!-- &plugin_charset.fr.xml; -->
|
||||
|
||||
&plugin_fifo.fr.xml;
|
||||
|
||||
<!-- &plugin_scripts.fr.xml; -->
|
||||
|
||||
&plugin_xfer.fr.xml;
|
||||
|
||||
</chapter>
|
||||
|
||||
@@ -30,11 +30,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
%include_autogen.xml;
|
||||
|
||||
<!-- ***** written by hand: ***** -->
|
||||
<!ENTITY intro.fr.xml SYSTEM "intro.fr.xml">
|
||||
<!ENTITY plugins.fr.xml SYSTEM "plugins.fr.xml">
|
||||
<!ENTITY plugin_api.fr.xml SYSTEM "plugin_api.fr.xml">
|
||||
<!ENTITY plugin_scripts.fr.xml SYSTEM "plugin_scripts.fr.xml">
|
||||
<!ENTITY authors.fr.xml SYSTEM "authors.fr.xml">
|
||||
<!ENTITY intro.fr.xml SYSTEM "intro.fr.xml">
|
||||
<!ENTITY plugins.fr.xml SYSTEM "plugins.fr.xml">
|
||||
<!ENTITY plugin_api.fr.xml SYSTEM "plugin_api.fr.xml">
|
||||
<!ENTITY plugin_c_api.fr.xml SYSTEM "plugin_c_api.fr.xml">
|
||||
<!ENTITY plugin_script_api.fr.xml SYSTEM "plugin_script_api.fr.xml">
|
||||
<!ENTITY authors.fr.xml SYSTEM "authors.fr.xml">
|
||||
]>
|
||||
|
||||
<book lang="fr">
|
||||
@@ -95,7 +96,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
&intro.fr.xml;
|
||||
|
||||
<!-- &plugins.fr.xml; -->
|
||||
&plugins.fr.xml;
|
||||
|
||||
&plugin_api.fr.xml;
|
||||
|
||||
&authors.fr.xml;
|
||||
|
||||
|
||||
@@ -79,6 +79,20 @@ a:hover {
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.note {
|
||||
border: dashed 1px #CCCCCC;
|
||||
background-color: #FFFFFF;
|
||||
margin: 0;
|
||||
padding: 6px 6px 0 6px;
|
||||
}
|
||||
|
||||
.note h3 {
|
||||
border: none;
|
||||
background-color: #FFFFFF;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.programlisting {
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<xsl:param name="chunk.section.depth" select="2"/>
|
||||
<xsl:param name="chunk.quietly" select="1"/>
|
||||
<xsl:param name="chunk.first.sections" select="1"/>
|
||||
<xsl:param name="generate.section.toc.level" select="3"/>
|
||||
<xsl:param name="generate.section.toc.level" select="2"/>
|
||||
|
||||
<xsl:param name="html.stylesheet">weechat-doc.css</xsl:param>
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<xsl:param name="chunk.section.depth" select="2"/>
|
||||
<xsl:param name="chunk.quietly" select="1"/>
|
||||
<xsl:param name="chunk.first.sections" select="1"/>
|
||||
<xsl:param name="generate.section.toc.level" select="3"/>
|
||||
<xsl:param name="generate.section.toc.level" select="2"/>
|
||||
|
||||
<xsl:param name="html.stylesheet">weechat-doc.css</xsl:param>
|
||||
|
||||
|
||||
@@ -804,14 +804,10 @@ config_file_string_to_boolean (const char *text)
|
||||
|
||||
/*
|
||||
* config_file_option_reset: set default value for an option
|
||||
* return one of these values:
|
||||
* WEECHAT_CONFIG_OPTION_SET_OK_CHANGED
|
||||
* WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE
|
||||
* WEECHAT_CONFIG_OPTION_SET_ERROR
|
||||
*
|
||||
* 2 if ok (value changed)
|
||||
* 1 if ok (value is the same)
|
||||
* 0 if failed
|
||||
* return one of these values:
|
||||
* WEECHAT_CONFIG_OPTION_SET_OK_CHANGED
|
||||
* WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE
|
||||
* WEECHAT_CONFIG_OPTION_SET_ERROR
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -1447,16 +1443,13 @@ config_file_option_string (struct t_config_option *option)
|
||||
* config_file_option_color: return color value of an option
|
||||
*/
|
||||
|
||||
int
|
||||
char *
|
||||
config_file_option_color (struct t_config_option *option)
|
||||
{
|
||||
if (!option)
|
||||
return 0;
|
||||
|
||||
if (option->type == CONFIG_OPTION_TYPE_COLOR)
|
||||
return CONFIG_COLOR(option);
|
||||
else
|
||||
return 0;
|
||||
return NULL;
|
||||
|
||||
return gui_color_get_name (CONFIG_COLOR(option));
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -229,7 +229,7 @@ extern int config_file_option_unset_with_string (const char *option_name);
|
||||
extern int config_file_option_boolean (struct t_config_option *option);
|
||||
extern int config_file_option_integer (struct t_config_option *option);
|
||||
extern char *config_file_option_string (struct t_config_option *option);
|
||||
extern int config_file_option_color (struct t_config_option *option);
|
||||
extern char *config_file_option_color (struct t_config_option *option);
|
||||
|
||||
extern void config_file_write_line (struct t_config_file *config_file,
|
||||
const char *option_name, const char *value, ...);
|
||||
|
||||
@@ -1886,7 +1886,8 @@ static int
|
||||
weechat_lua_api_config_color (lua_State *L)
|
||||
{
|
||||
const char *option;
|
||||
int n, value;
|
||||
char *result;
|
||||
int n;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
@@ -1909,9 +1910,9 @@ weechat_lua_api_config_color (lua_State *L)
|
||||
|
||||
option = lua_tostring (lua_current_interpreter, -1);
|
||||
|
||||
value = weechat_config_color (script_str2ptr (option));
|
||||
result = weechat_config_color (script_str2ptr (option));
|
||||
|
||||
LUA_RETURN_INT(value);
|
||||
LUA_RETURN_STRING(result);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -1583,7 +1583,7 @@ static XS (XS_weechat_api_config_string)
|
||||
|
||||
static XS (XS_weechat_api_config_color)
|
||||
{
|
||||
int value;
|
||||
char *result;
|
||||
dXSARGS;
|
||||
|
||||
/* make C compiler happy */
|
||||
@@ -1601,9 +1601,9 @@ static XS (XS_weechat_api_config_color)
|
||||
PERL_RETURN_INT(0);
|
||||
}
|
||||
|
||||
value = weechat_config_color (script_str2ptr (SvPV (ST (0), PL_na))); /* option */
|
||||
result = weechat_config_color (script_str2ptr (SvPV (ST (0), PL_na))); /* option */
|
||||
|
||||
PERL_RETURN_INT(value);
|
||||
PERL_RETURN_STRING(result);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -1672,8 +1672,7 @@ weechat_python_api_config_string (PyObject *self, PyObject *args)
|
||||
static PyObject *
|
||||
weechat_python_api_config_color (PyObject *self, PyObject *args)
|
||||
{
|
||||
char *option;
|
||||
int value;
|
||||
char *option, *result;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
@@ -1692,9 +1691,9 @@ weechat_python_api_config_color (PyObject *self, PyObject *args)
|
||||
PYTHON_RETURN_INT(0);
|
||||
}
|
||||
|
||||
value = weechat_config_color (script_str2ptr (option));
|
||||
result = weechat_config_color (script_str2ptr (option));
|
||||
|
||||
PYTHON_RETURN_INT(value);
|
||||
PYTHON_RETURN_STRING(result);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -1924,8 +1924,7 @@ weechat_ruby_api_config_string (VALUE class, VALUE option)
|
||||
static VALUE
|
||||
weechat_ruby_api_config_color (VALUE class, VALUE option)
|
||||
{
|
||||
char *c_option;
|
||||
int value;
|
||||
char *c_option, *result;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) class;
|
||||
@@ -1948,9 +1947,9 @@ weechat_ruby_api_config_color (VALUE class, VALUE option)
|
||||
|
||||
c_option = STR2CSTR (option);
|
||||
|
||||
value = weechat_config_color (script_str2ptr (c_option));
|
||||
result = weechat_config_color (script_str2ptr (c_option));
|
||||
|
||||
RUBY_RETURN_INT(value);
|
||||
RUBY_RETURN_STRING(result);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -1855,7 +1855,8 @@ weechat_tcl_api_config_color (ClientData clientData, Tcl_Interp *interp,
|
||||
int objc, Tcl_Obj *CONST objv[])
|
||||
{
|
||||
Tcl_Obj *objp;
|
||||
int result, i;
|
||||
char *result;
|
||||
int i;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) clientData;
|
||||
@@ -1874,7 +1875,7 @@ weechat_tcl_api_config_color (ClientData clientData, Tcl_Interp *interp,
|
||||
|
||||
result = weechat_config_color (script_str2ptr (Tcl_GetStringFromObj (objv[1], &i))); /* option */
|
||||
|
||||
TCL_RETURN_INT(result);
|
||||
TCL_RETURN_STRING(result);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -184,7 +184,7 @@ struct t_weechat_plugin
|
||||
long (*timeval_diff) (struct timeval *tv1, struct timeval *tv2);
|
||||
void (*timeval_add) (struct timeval *tv, long interval);
|
||||
|
||||
/* sorted list */
|
||||
/* sorted lists */
|
||||
struct t_weelist *(*list_new) ();
|
||||
struct t_weelist_item *(*list_add) (struct t_weelist *weelist,
|
||||
const char *data,
|
||||
@@ -244,10 +244,12 @@ struct t_weechat_plugin
|
||||
const char *section_name);
|
||||
struct t_config_option *(*config_new_option) (struct t_config_file *config_file,
|
||||
struct t_config_section *section,
|
||||
const char *name, const char *type,
|
||||
const char *name,
|
||||
const char *type,
|
||||
const char *description,
|
||||
const char *string_values,
|
||||
int min, int max,
|
||||
int min,
|
||||
int max,
|
||||
const char *default_value,
|
||||
const char *value,
|
||||
int (*callback_check_value)(void *data,
|
||||
@@ -286,7 +288,7 @@ struct t_weechat_plugin
|
||||
int (*config_boolean) (struct t_config_option *option);
|
||||
int (*config_integer) (struct t_config_option *option);
|
||||
char *(*config_string) (struct t_config_option *option);
|
||||
int (*config_color) (struct t_config_option *option);
|
||||
char *(*config_color) (struct t_config_option *option);
|
||||
void (*config_write_line) (struct t_config_file *config_file,
|
||||
const char *option_name,
|
||||
const char *value, ...);
|
||||
@@ -826,8 +828,6 @@ extern int weechat_plugin_end (struct t_weechat_plugin *plugin);
|
||||
#define weechat_printf(__buffer, __message, __argz...) \
|
||||
weechat_plugin->printf_date_tags(__buffer, 0, NULL, __message, \
|
||||
##__argz)
|
||||
#define weechat_printf_y(__buffer, __y, __message, __argz...) \
|
||||
weechat_plugin->printf_y(__buffer, __y, __message, ##__argz)
|
||||
#define weechat_printf_date(__buffer, __date, __message, __argz...) \
|
||||
weechat_plugin->printf_date_tags(__buffer, __date, NULL, \
|
||||
__message, ##__argz)
|
||||
@@ -838,6 +838,8 @@ extern int weechat_plugin_end (struct t_weechat_plugin *plugin);
|
||||
__argz...) \
|
||||
weechat_plugin->printf_date_tags(__buffer, __date, __tags, \
|
||||
__message, ##__argz)
|
||||
#define weechat_printf_y(__buffer, __y, __message, __argz...) \
|
||||
weechat_plugin->printf_y(__buffer, __y, __message, ##__argz)
|
||||
#define weechat_log_printf(__message, __argz...) \
|
||||
weechat_plugin->log_printf(__message, ##__argz)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user