Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
History for libpkg/plugins.c  ·  View all commits
85 commits
S
Merge branch 'upstream-master'
Shawn Webb
3 years ago 6c2ebb5
j
fix variable name in function pkg_plugin_conf_add for type = PKG_OBJECT
julp
4 years ago 78727ce
B
plugins: remove useless use of uthash
Baptiste Daroussin
4 years ago e83f242
S
Merge commit '74fd3389a4ee2611603ee8658d2f3b4182ace73e'
Shawn Webb
5 years ago b759c48
B
xstring usage: prefer fputs over fprintf where possible
Baptiste Daroussin
5 years ago 720878c
B
Remove xstring from plugin interface
Baptiste Daroussin
5 years ago ad21d3a
B
plugins: fix getting configuration information
Baptiste Daroussin
5 years ago 25d1e1a
B
Remove unused header
Baptiste Daroussin
7 years ago 2df04dc
B
abort() in case of memory failure
Baptiste Daroussin
9 years ago 2a1ca66
B
Fix warnings reported by clang
Baptiste Daroussin
9 years ago 1d317c3
B
Replace libsbuf with utstring.h to improve portability
Baptiste Daroussin
9 years ago f93c045
B
Remove useless sbuf_get()
Baptiste Daroussin
10 years ago 5734f64
B
Merge pull request #1044 from clearr/fix-plugins
Baptiste Daroussin
11 years ago f2567b6
F
Fix plugin detection
FUJII Ryota
11 years ago dda9ab3
B
Initialize a variable
Baptiste Daroussin
11 years ago b01084d
B
Convert struct pkg to mostly be a ucl_object_t and chase libucl changes
Baptiste Daroussin
12 years ago 3a72e6b
B
Replace all ucl_object_free by ucl_object_unref
Baptiste Daroussin
12 years ago b63dfc6
M
Merge branch 'master' into indexfile
Matthew Seaman
12 years ago edb8f16
V
Simplify free macros.
Vsevolod Stakhov
12 years ago e1f8a53
M
Merge branch 'master' into indexfile
Matthew Seaman
12 years ago 859bbf1
B
Use ucl_object_pop_key instead of ucl_object_delete_key
Baptiste Daroussin
12 years ago 72be460
B
Simplify plugin config api
Baptiste Daroussin
12 years ago fa0e227
B
More unused variable
Baptiste Daroussin
12 years ago 8fa18f5
B
Propagate usage of ucl
Baptiste Daroussin
12 years ago 99f9cd1
B
Remove libutil header where it is not needed
Baptiste Daroussin
12 years ago 21db552
B
Merge branch 'master' into fix-autoremove-completion
Brad Davis
12 years ago 5b00ee1
V
Merge branch 'master' into gsoc
Vsevolod Stakhov
12 years ago 8d30157
M
Where we use a fixed size char array as a buffer or as a member of a structure, use the sizeof() operator later in the same scope when we need to know the length of the array.
Matthew Seaman
12 years ago 2f3cf0c
B
Import from libucl
Baptiste Daroussin
12 years ago 5dc3602
B
Now that we have a clean uthash, remove most of the useless __DECONST
Baptiste Daroussin
12 years ago 17ee128
B
Sync from libucl, update to use the new API
Baptiste Daroussin
12 years ago 730c08c
B
Consistently use ucl_oject_ all over the place
Baptiste Daroussin
12 years ago 4351972
B
Convert the plugin configuration parser to libucl
Baptiste Daroussin
12 years ago 9bd5449
B
Accept empty configuration files
Baptiste Daroussin
12 years ago 469e2a6
B
Fix struct pkg_config memory leak in pkg_plugin_conf_add_integer()
Bryan Drewery
12 years ago 7f5c485
M
Refactor 'pkg [-v|-vv|-vvv]' handling
Matthew Seaman
12 years ago 1dcd181
A
Merge remote-tracking branch 'origin/master' into periodic
Alex Kozlov
13 years ago 677d1b3
B
Nuke all sys/queue.h usage and replace it by utlist
Baptiste Daroussin
13 years ago 0a179bd
M
Style: Add dash to first line of copyright header.
Matthew Seaman
13 years ago bfe0183
B
Use the LIST_FREE macro where possible
Baptiste Daroussin
13 years ago 6d59ede
B
Finish conversion to hash
Baptiste Daroussin
13 years ago 8b50aac
B
Remove debug on hook execution
Baptiste Daroussin
13 years ago c06f5d8
B
Rename init/shutdown in plugin interface to pkg_plugin_init pkg_plugin_shutdown to avoid conflicts with shutdown(2)
Baptiste Daroussin
13 years ago c6b5874
B
Fix pkg_plugin_conf_add_bool
Baptiste Daroussin
13 years ago efdd4e4
B
plug memory leaks
Baptiste Daroussin
13 years ago 44e22d5
B
In case the plugin as no init function, return an error
Baptiste Daroussin
13 years ago d5aa939
B
Print plugin configuration in pkg -vv
Baptiste Daroussin
13 years ago 752e267
B
Dynamically list all options (TODO get the same from plugins)
Baptiste Daroussin
13 years ago b356d45
B
Automatically disable plugins if run from a static binary
Baptiste Daroussin
13 years ago 11bbc51
B
convert uint8_t to int (hashable with uthash), close the plugin configuration file, look in the right place for plugin configuration
Baptiste Daroussin
13 years ago 4e822ad
B
Allow plugin to get configuration through libpkg using same mecanism that pkg.conf
Baptiste Daroussin
13 years ago f1da9ee
B
Add my copyright
Baptiste Daroussin
13 years ago 22ac61f
B
Convert the hook list into a hash table
Baptiste Daroussin
13 years ago 768802c
B
Directly register the hooks from inside the plugin, no need thrid party interface
Baptiste Daroussin
13 years ago bdb66d5
B
convert to singular plugin functions/struct/type that concern only a single plugin, modify API for consistency with the rest of the library
Baptiste Daroussin
13 years ago 60308e2
B
Kill PKG_PLUGINS_SUMMARY has pkg plugins already do the same job
Baptiste Daroussin
13 years ago f66cd9b
B
Simplify plugin interfaces
Baptiste Daroussin
13 years ago 5f453b5
B
Make the plugin independant from the frontend, while here segfault when a file with now extension is found search for a plugin conf
Baptiste Daroussin
13 years ago 7e3f8df
R
Merge branch 'master' of git://github.com/pkgng/pkgng
Roman Naumann
13 years ago 838dd4c
M
Do not allow duplicate plugin names
Marin Atanasov Nikolov
13 years ago 79cbb8f
J
Add security checks before loading external code.
Julien Laffaye
13 years ago c35cd9e
M
Load plugins first in order to display commands provided by plugins
Marin Atanasov Nikolov
13 years ago 5be615e
M
Execute commands provided by plugins if any
Marin Atanasov Nikolov
13 years ago 0d2a419
M
Add a function to query if a plugin provides a command or not
Marin Atanasov Nikolov
13 years ago 3c7a9d7
M
Allow plugins to register commands for execution, e.g. 'pkg <plugin-command>'
Marin Atanasov Nikolov
13 years ago b74cd85
M
In order plugins to be really useful they will need some access to the db
Marin Atanasov Nikolov
13 years ago 307c124
M
Small style update for summary displaying of plugins
Marin Atanasov Nikolov
13 years ago eba2bd4
M
Display a notice when libpkg triggers a plugin execution
Marin Atanasov Nikolov
13 years ago 07212a1
M
Remove comment as this is now implemented
Marin Atanasov Nikolov
13 years ago a80844c
M
Correctly execute plugins' callback functions
Marin Atanasov Nikolov
13 years ago 69c067f
M
Allow plugins to register more than 1 callback for hooking into the library
Marin Atanasov Nikolov
13 years ago 865a136
M
Better matching of .conf files for plugins
Marin Atanasov Nikolov
13 years ago 583dc33
M
Pass data to the plugins for processing
Marin Atanasov Nikolov
13 years ago b0dec50
M
Add pkg_plugins_hook_run() for triggering plugins
Marin Atanasov Nikolov
13 years ago 0cd32a4
M
Add a comment for plugin callbacks in the code
Marin Atanasov Nikolov
13 years ago fdc915b
M
First version of pkg_plugins_hook() for hooking into the library
Marin Atanasov Nikolov
13 years ago 7821fdb
M
Report the number of plugins loaded by pkg at startup
Marin Atanasov Nikolov
13 years ago 4346466
M
Correctly display a summary of the loaded plugins
Marin Atanasov Nikolov
13 years ago 231d9e8
M
Display which plugins have been loaded during startup
Marin Atanasov Nikolov
13 years ago bd570b6
M
Do not try to unload a plugin if it wasn't loaded at all
Marin Atanasov Nikolov
13 years ago 4d5b0cd
M
Add routines for loading and unloading of plugins in pkgng
Marin Atanasov Nikolov
13 years ago 8b83b68
M
Add a function for getting plugins data -> pkg_plugins_get()
Marin Atanasov Nikolov
13 years ago ddfb9d5
M
Apply some assert()'s in libpkg/plugins.c
Marin Atanasov Nikolov
13 years ago 8bece0c
M
s/plugin/plugins in the plugins interface
Marin Atanasov Nikolov
13 years ago 682ebe5
M
First version of the pkg_plugins interface
Marin Atanasov Nikolov
13 years ago 7e34c7c