36 |
|
|
37 |
@title WeeChat - Gui@'on de usuario. |
@title WeeChat - Gui@'on de usuario. |
38 |
@subtitle Cliente IRC r@'apido, peque@~no y extensible |
@subtitle Cliente IRC r@'apido, peque@~no y extensible |
39 |
@subtitle Documentaci@'on para WeeChat v0.1.6-cvs - 23 de octubre de 2005 |
@subtitle Documentaci@'on para WeeChat v0.1.6-cvs - 24 de octubre 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 |
|
|
2069 |
@code{char *value2 = plugin->get_config (plugin, "freenode.server_autojoin");}@* |
@code{char *value2 = plugin->get_config (plugin, "freenode.server_autojoin");}@* |
2070 |
@* |
@* |
2071 |
|
|
2072 |
|
@item |
2073 |
|
@command{int set_config (t_weechat_plugin |
2074 |
|
*plugin, char *option, char *value)}@* |
2075 |
|
@* |
2076 |
|
Update value of a WeeChat config option.@* |
2077 |
|
|
2078 |
|
@emph{Arguments:} |
2079 |
|
@itemize @minus |
2080 |
|
@item @option{plugin}: pointer to plugin structure |
2081 |
|
@item @option{option}: name of option to update |
2082 |
|
@item @option{value}: new value for option |
2083 |
|
@end itemize |
2084 |
|
@* |
2085 |
|
@emph{Return value:}@* |
2086 |
|
@* |
2087 |
|
1 if option was updated successfully, 0 if error occured.@* |
2088 |
|
@* |
2089 |
|
@emph{Example:}@* |
2090 |
|
@* |
2091 |
|
@code{plugin->set_config (plugin, "look_nicklist", "off");}@* |
2092 |
|
@* |
2093 |
|
|
2094 |
|
@item |
2095 |
|
@command{char *get_plugin_config (t_weechat_plugin |
2096 |
|
*plugin, char *option)}@* |
2097 |
|
@* |
2098 |
|
Return value of a plugin option.@* |
2099 |
|
|
2100 |
|
@emph{Arguments:} |
2101 |
|
@itemize @minus |
2102 |
|
@item @option{plugin}: pointer to plugin structure |
2103 |
|
@item @option{option}: name of option to read |
2104 |
|
@end itemize |
2105 |
|
@* |
2106 |
|
@emph{Return value:}@* |
2107 |
|
@* |
2108 |
|
Value of option, NULL if not found.@* |
2109 |
|
Note: result has to be free by a call to ``free'' function after |
2110 |
|
use.@* |
2111 |
|
@* |
2112 |
|
@emph{Example:}@* |
2113 |
|
@* |
2114 |
|
@code{char *value = plugin->get_plugin_config (plugin, "my_var");}@* |
2115 |
|
@* |
2116 |
|
|
2117 |
|
@item |
2118 |
|
@command{int set_plugin_config (t_weechat_plugin |
2119 |
|
*plugin, char *option, char *value)}@* |
2120 |
|
@* |
2121 |
|
Update value of a plugin option.@* |
2122 |
|
|
2123 |
|
@emph{Arguments:} |
2124 |
|
@itemize @minus |
2125 |
|
@item @option{plugin}: pointer to plugin structure |
2126 |
|
@item @option{option}: name of option to update |
2127 |
|
@item @option{value}: new value for option |
2128 |
|
@end itemize |
2129 |
|
@* |
2130 |
|
@emph{Return value:}@* |
2131 |
|
@* |
2132 |
|
1 if option was updated successfully, 0 if error occured.@* |
2133 |
|
@* |
2134 |
|
@emph{Example:}@* |
2135 |
|
@* |
2136 |
|
@code{plugin->set_plugin_config (plugin, "my_var", "value");}@* |
2137 |
|
@* |
2138 |
|
|
2139 |
@end itemize |
@end itemize |
2140 |
|
|
2141 |
@subsection Compile plugin |
@subsection Compile plugin |