doc: fix name of compiled plugin example (plugin API reference)
parent
3766beb13e
commit
b2d9b2f0ba
|
@ -146,13 +146,13 @@ To compile a plugin which has one file "toto.c" (under GNU/Linux):
|
|||
|
||||
----
|
||||
$ gcc -fPIC -Wall -c toto.c
|
||||
$ gcc -shared -fPIC -o libtoto.so toto.o
|
||||
$ gcc -shared -fPIC -o toto.so toto.o
|
||||
----
|
||||
|
||||
[[load_plugin]]
|
||||
=== Load plugin
|
||||
|
||||
Copy file _libtoto.so_ into system plugins directory (for example
|
||||
Copy file _toto.so_ into system plugins directory (for example
|
||||
_/usr/local/lib/weechat/plugins_) or into user's plugins directory (for example
|
||||
_/home/xxx/.weechat/plugins_).
|
||||
|
||||
|
|
|
@ -151,13 +151,13 @@ Pour compiler l'extension qui n'a qu'un fichier "toto.c" (sous GNU/Linux) :
|
|||
|
||||
----
|
||||
$ gcc -fPIC -Wall -c toto.c
|
||||
$ gcc -shared -fPIC -o libtoto.so toto.o
|
||||
$ gcc -shared -fPIC -o toto.so toto.o
|
||||
----
|
||||
|
||||
[[load_plugin]]
|
||||
=== Chargement de l'extension
|
||||
|
||||
Copiez le fichier _libtoto.so_ dans le répertoire système des extensions (par
|
||||
Copiez le fichier _toto.so_ dans le répertoire système des extensions (par
|
||||
exemple _/usr/local/lib/weechat/plugins_) ou dans le répertoire utilisateur des
|
||||
extensions (par exemple _/home/xxx/.weechat/plugins_).
|
||||
|
||||
|
|
|
@ -164,13 +164,13 @@ Per compilare un plugin che ha un file "tizio.c" (in GNU/Linux):
|
|||
|
||||
----
|
||||
$ gcc -fPIC -Wall -c tizio.c
|
||||
$ gcc -shared -fPIC -o libtizio.so tizio.o
|
||||
$ gcc -shared -fPIC -o tizio.so tizio.o
|
||||
----
|
||||
|
||||
[[load_plugin]]
|
||||
=== Caricamento del plugin
|
||||
|
||||
Copiare il file _libtizio.so_ nella cartella plugin di sistema (ad
|
||||
Copiare il file _tizio.so_ nella cartella plugin di sistema (ad
|
||||
esempio _/usr/local/lib/weechat/plugins_) oppure nella cartella
|
||||
plugin dell'utente (ad esempio _/home/xxx/.weechat/plugins_).
|
||||
|
||||
|
|
|
@ -152,13 +152,13 @@ int weechat_plugin_end (struct t_weechat_plugin *plugin);
|
|||
|
||||
----
|
||||
$ gcc -fPIC -Wall -c toto.c
|
||||
$ gcc -shared -fPIC -o libtoto.so toto.o
|
||||
$ gcc -shared -fPIC -o toto.so toto.o
|
||||
----
|
||||
|
||||
[[load_plugin]]
|
||||
=== プラグインを読み込む
|
||||
|
||||
_libtoto.so_ ファイルをシステムのプラグインディレクトリ (例えば
|
||||
_toto.so_ ファイルをシステムのプラグインディレクトリ (例えば
|
||||
_/usr/local/lib/weechat/plugins_) またはユーザのプラグインディレクトリ (例えば
|
||||
_/home/xxx/.weechat/plugins_) にコピーしてください。
|
||||
|
||||
|
|
Loading…
Reference in New Issue