-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin support #1328
base: master
Are you sure you want to change the base?
Plugin support #1328
Commits on May 2, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 06027eb - Browse repository at this point
Copy the full SHA 06027ebView commit details -
Configuration menu - View commit details
-
Copy full SHA for bef2971 - Browse repository at this point
Copy the full SHA bef2971View commit details -
Updated to use calloc/realloc/free so that the plugins array can be w…
…hatever size it needs to be to handle the number of plugins. Also added further error checking to the various for-loops.
Configuration menu - View commit details
-
Copy full SHA for daf7ec2 - Browse repository at this point
Copy the full SHA daf7ec2View commit details
Commits on May 3, 2020
-
Change from using an array to using a doubly-linked list, likely don'…
…t need to go backwards, but it's an easy thing to implement.
Configuration menu - View commit details
-
Copy full SHA for b392572 - Browse repository at this point
Copy the full SHA b392572View commit details -
Removed old code from bsd.c, forgot to update local.dst with changes …
…that were in local.c
1Configuration menu - View commit details
-
Copy full SHA for 773dbb1 - Browse repository at this point
Copy the full SHA 773dbb1View commit details -
Revert local.dst, move timers to their individual plugins with the sq…
…_register_loop(), move unloading of plugins from local.dst:local_shutdown() to bsd.c:unload_plugins(). Plugin management will eventually need to be moved to a new file called plugins.c, and with minor changes to necessary penn files for loading, unloading, etc...
Configuration menu - View commit details
-
Copy full SHA for 566634b - Browse repository at this point
Copy the full SHA 566634bView commit details
Commits on Sep 25, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 82b2996 - Browse repository at this point
Copy the full SHA 82b2996View commit details
Commits on Oct 8, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 082cac1 - Browse repository at this point
Copy the full SHA 082cac1View commit details -
GCC 10 defaults to -fno-common which means any variables in a header …
…file not marked as 'extern' where the header file is included in multiple source files will return a 'Multiple definitions' error.
Configuration menu - View commit details
-
Copy full SHA for a24bccf - Browse repository at this point
Copy the full SHA a24bccfView commit details -
Move plugin declarations from conf.h to a new plugin.h and include th…
…at in bsd.c since for now bsd.c is the only file that cares about it.
Configuration menu - View commit details
-
Copy full SHA for dc40027 - Browse repository at this point
Copy the full SHA dc40027View commit details
Commits on Oct 9, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 67bbe95 - Browse repository at this point
Copy the full SHA 67bbe95View commit details
Commits on Oct 10, 2021
-
Modified next_token() in tinyexpr.c so that it was te_next_token() in…
…stead, that way it doesn't conflict with Penn's own next_token() function.
Configuration menu - View commit details
-
Copy full SHA for 81cfddf - Browse repository at this point
Copy the full SHA 81cfddfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d398e5 - Browse repository at this point
Copy the full SHA 8d398e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for e6ec5ff - Browse repository at this point
Copy the full SHA e6ec5ffView commit details -
Prune the list of included files to only those actually needed by thi…
…s particular plugin
Configuration menu - View commit details
-
Copy full SHA for 0168de1 - Browse repository at this point
Copy the full SHA 0168de1View commit details -
Don't track the .so file anymore, since it's created by compiling the…
… plugin for the particular system it is running on
Configuration menu - View commit details
-
Copy full SHA for eac62d7 - Browse repository at this point
Copy the full SHA eac62d7View commit details
Commits on Oct 11, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 4596569 - Browse repository at this point
Copy the full SHA 4596569View commit details -
Configuration menu - View commit details
-
Copy full SHA for 18ef98b - Browse repository at this point
Copy the full SHA 18ef98bView commit details -
Move load_plugins and unload_plugins to be above the main function, t…
…hat way we don't get implicit declaration warnings.
Configuration menu - View commit details
-
Copy full SHA for 7a02474 - Browse repository at this point
Copy the full SHA 7a02474View commit details -
Add a check with snprintf so that if it is longer than 255 bytes (Can…
…'t be since d->name is set at 256 internally) we bail out
Configuration menu - View commit details
-
Copy full SHA for f1321d5 - Browse repository at this point
Copy the full SHA f1321d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for f58346e - Browse repository at this point
Copy the full SHA f58346eView commit details
Commits on Oct 12, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 5e91e82 - Browse repository at this point
Copy the full SHA 5e91e82View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b7ba21 - Browse repository at this point
Copy the full SHA 5b7ba21View commit details -
Configuration menu - View commit details
-
Copy full SHA for 925cf5a - Browse repository at this point
Copy the full SHA 925cf5aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 361c00a - Browse repository at this point
Copy the full SHA 361c00aView commit details
Commits on Oct 15, 2021
-
Start the adding of the @plugin function and make the plugins directo…
…ry configurable in mush.cnf
Configuration menu - View commit details
-
Copy full SHA for c241c73 - Browse repository at this point
Copy the full SHA c241c73View commit details -
Configuration menu - View commit details
-
Copy full SHA for 20ec5df - Browse repository at this point
Copy the full SHA 20ec5dfView commit details -
Modify the PLUGIN_INFO struct so that plugins can provide a short des…
…cription and long description. Start of @plugin/list command.
Configuration menu - View commit details
-
Copy full SHA for 39f6629 - Browse repository at this point
Copy the full SHA 39f6629View commit details
Commits on Oct 16, 2021
-
Separate out the logic for @plugin/list into its own function that is…
… called by cmd_plugin. Loop through the plugins directory so that each plugin can show whether it has been loaded into the game or not.
Configuration menu - View commit details
-
Copy full SHA for 2fe914c - Browse repository at this point
Copy the full SHA 2fe914cView commit details -
Configuration menu - View commit details
-
Copy full SHA for e21a9f8 - Browse repository at this point
Copy the full SHA e21a9f8View commit details
Commits on Oct 17, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 586e375 - Browse repository at this point
Copy the full SHA 586e375View commit details -
Split out some more of the loading and unloading to generic functions…
… so that they can be used by load/unload/reload and initial starting up/@shutdown/reboot
Configuration menu - View commit details
-
Copy full SHA for df5ba91 - Browse repository at this point
Copy the full SHA df5ba91View commit details -
Move functions to be above the COMMAND(cmd_plugin) reference to silen…
…ce warnings. Fix up do_real_unload_plugin as it wasn't removing the plugin from the hashtab due to using the wrong key. Finish implementing @plugin/reload and @plugin/unload.
Configuration menu - View commit details
-
Copy full SHA for a60d63b - Browse repository at this point
Copy the full SHA a60d63bView commit details -
Forgot to close the directory after scanning through it.
Start of implementing @plugin/load <.so file>
Configuration menu - View commit details
-
Copy full SHA for d25e1a1 - Browse repository at this point
Copy the full SHA d25e1a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for cb82274 - Browse repository at this point
Copy the full SHA cb82274View commit details -
@plugin/load now correctly loads a plugin, but it incorrectly sets th…
…e ID of the plugin.
Configuration menu - View commit details
-
Copy full SHA for b9af16a - Browse repository at this point
Copy the full SHA b9af16aView commit details -
Further changes (possibly an improvement?) to @plugin/list.
Update do_real_load_plugin so that it returns a success or fail to denote if the plugin was loaded or not so that @plugin/load can provide feedback.
Configuration menu - View commit details
-
Copy full SHA for a6a1e34 - Browse repository at this point
Copy the full SHA a6a1e34View commit details
Commits on Dec 1, 2021
-
Changes to plugin.c to provide the reason why the plugin failed to op…
…en, also changes to the example math plugin to work on FreeBSD.
Configuration menu - View commit details
-
Copy full SHA for 9502e62 - Browse repository at this point
Copy the full SHA 9502e62View commit details
Commits on Dec 3, 2021
-
Instead of returning -1 on error, return the error message from dlerr…
…or(), that way in cases where we are manually loading the plugin, we can display the error to the executor of @plugin/load
Configuration menu - View commit details
-
Copy full SHA for c5a91ed - Browse repository at this point
Copy the full SHA c5a91edView commit details -
Update documentation and remove 'active' since the easiest way to mak…
…e a plugin inactive is to unload it.
Configuration menu - View commit details
-
Copy full SHA for f7b037b - Browse repository at this point
Copy the full SHA f7b037bView commit details -
Instead of setting the plugin id each time a plugin is added, reseque…
…nce all the plugin ids, that way it remains 1...n instead of having gaps.
Configuration menu - View commit details
-
Copy full SHA for 8a84c9c - Browse repository at this point
Copy the full SHA 8a84c9cView commit details -
Instead of looping through the hash to get the list of loaded plugins…
…, then looping through the plugins directory where we have to eventually hashfind() anyway, just loop through the plugins directory and hashfind() on each file found.
Configuration menu - View commit details
-
Copy full SHA for a705468 - Browse repository at this point
Copy the full SHA a705468View commit details
Commits on Dec 4, 2021
-
Add a new @plugins command which is essentially a shortcut for @plugi…
…n/list. Move resequence_plugin_ids() so that it is defined before it is used.
Configuration menu - View commit details
-
Copy full SHA for beb7414 - Browse repository at this point
Copy the full SHA beb7414View commit details
Commits on May 27, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 6bc779a - Browse repository at this point
Copy the full SHA 6bc779aView commit details