/[weechat]/weechat/doc/weechat_doc_pt.texi
ViewVC logotype

Diff of /weechat/doc/weechat_doc_pt.texi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.44 by flashcode, Sun Oct 23 11:34:58 2005 UTC revision 1.45 by flashcode, Sun Oct 23 22:07:20 2005 UTC
# Line 36  Line 36 
36    
37  @title WeeChat - Guia do Utilizador  @title WeeChat - Guia do Utilizador
38  @subtitle Cliente de IRC rapido, leve e extencivel  @subtitle Cliente de IRC rapido, leve e extencivel
39  @subtitle Documenta@,{c}@~ao do WeeChat v0.1.6-cvs - 23 de outubro de 2005  @subtitle Documenta@,{c}@~ao do WeeChat v0.1.6-cvs - 24 de outubro de 2005
40    
41  @author FlashCode <@email{flashcode@@flashtux.org, flashcode AT flashtux.org}>  @author FlashCode <@email{flashcode@@flashtux.org, flashcode AT flashtux.org}>
42    
# Line 2064  use.@* Line 2064  use.@*
2064  @code{char *value2 = plugin->get_config (plugin, "freenode.server_autojoin");}@*  @code{char *value2 = plugin->get_config (plugin, "freenode.server_autojoin");}@*
2065  @*  @*
2066    
2067    @item
2068    @command{int set_config (t_weechat_plugin
2069    *plugin, char *option, char *value)}@*
2070    @*
2071    Update value of a WeeChat config option.@*
2072    
2073    @emph{Arguments:}
2074    @itemize @minus
2075    @item @option{plugin}: pointer to plugin structure
2076    @item @option{option}: name of option to update
2077    @item @option{value}: new value for option
2078    @end itemize
2079    @*
2080    @emph{Return value:}@*
2081    @*
2082    1 if option was updated successfully, 0 if error occured.@*
2083    @*
2084    @emph{Example:}@*
2085    @*
2086    @code{plugin->set_config (plugin, "look_nicklist", "off");}@*
2087    @*
2088    
2089    @item
2090    @command{char *get_plugin_config (t_weechat_plugin
2091    *plugin, char *option)}@*
2092    @*
2093    Return value of a plugin option.@*
2094    
2095    @emph{Arguments:}
2096    @itemize @minus
2097    @item @option{plugin}: pointer to plugin structure
2098    @item @option{option}: name of option to read
2099    @end itemize
2100    @*
2101    @emph{Return value:}@*
2102    @*
2103    Value of option, NULL if not found.@*
2104    Note: result has to be free by a call to ``free'' function after
2105    use.@*
2106    @*
2107    @emph{Example:}@*
2108    @*
2109    @code{char *value = plugin->get_plugin_config (plugin, "my_var");}@*
2110    @*
2111    
2112    @item
2113    @command{int set_plugin_config (t_weechat_plugin
2114    *plugin, char *option, char *value)}@*
2115    @*
2116    Update value of a plugin option.@*
2117    
2118    @emph{Arguments:}
2119    @itemize @minus
2120    @item @option{plugin}: pointer to plugin structure
2121    @item @option{option}: name of option to update
2122    @item @option{value}: new value for option
2123    @end itemize
2124    @*
2125    @emph{Return value:}@*
2126    @*
2127    1 if option was updated successfully, 0 if error occured.@*
2128    @*
2129    @emph{Example:}@*
2130    @*
2131    @code{plugin->set_plugin_config (plugin, "my_var", "value");}@*
2132    @*
2133    
2134  @end itemize  @end itemize
2135    
2136  @subsection Compile plugin  @subsection Compile plugin

Legend:
Removed from v.1.44  
changed lines
  Added in v.1.45

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26