{"id":15394771,"url":"https://github.com/bensuperpc/c_plugin","last_synced_at":"2026-05-02T13:34:12.350Z","repository":{"id":107271995,"uuid":"609290002","full_name":"bensuperpc/c_plugin","owner":"bensuperpc","description":"An example for a C (C99) plugin system. It can load/unload plugins at runtime and call functions from them.","archived":false,"fork":false,"pushed_at":"2023-03-06T18:35:17.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T02:11:06.948Z","etag":null,"topics":["c","c99","dlopen","linux","plugin"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bensuperpc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-03T19:32:50.000Z","updated_at":"2023-09-26T14:20:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"e742823d-a5df-4433-82c3-51142d2d72db","html_url":"https://github.com/bensuperpc/c_plugin","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"2e5ec02174754a76aecd8ef502fac65c09c172c8"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bensuperpc%2Fc_plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bensuperpc%2Fc_plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bensuperpc%2Fc_plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bensuperpc%2Fc_plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bensuperpc","download_url":"https://codeload.github.com/bensuperpc/c_plugin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245944062,"owners_count":20697948,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","c99","dlopen","linux","plugin"],"created_at":"2024-10-01T15:24:31.377Z","updated_at":"2026-05-02T13:34:12.343Z","avatar_url":"https://github.com/bensuperpc.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# c_plugin\n\n## Getting started\n\nAn example for a C (C99) plugin system. It can load/unload plugins at runtime and call functions from them.\n\n### Prerequisites\n\n- [Make](https://www.gnu.org/software/make/)\n- [GCC](https://gcc.gnu.org/)\n- [Linux](https://www.linux.org/) (or [WSL](https://docs.microsoft.com/en-us/windows/wsl/install-win10) on Windows).\n\n## Building\n\nTo build the project:\n\n```bash\nmake\n```\n\nTo build and test the project:\n\n```bash\nmake test\n```\n\n## Usage\n\nTo run the project and load the plugin1:\n__Note:__ You can change the plugin name to load another plugin (*plugin2*).\n\n```bash\n./build/main build/plugin1\n```\n\n## Contributing\n\nIf you want to contribute to this project, you can do it by opening a pull request or an issue.\n\n## Open source projects used\n\n- [Make](https://www.gnu.org/software/make/)\n- [gcc](https://github.com/gcc-mirror/gcc)\n- [actions](https://github.com/actions/virtual-environments)\n\n## Sources and references\n\n- [linux-dlopen-system-call-c](https://linuxhint.com/linux-dlopen-system-call-c/)\n- [dlopen_sample.c](https://gist.github.com/tailriver/30bf0c943325330b7b6a)\n- [alternatives-to-dlsym-and-dlopen-in-c](https://stackoverflow.com/questions/1067346/alternatives-to-dlsym-and-dlopen-in-c)\n- [sample-cpp-plugin](https://github.com/caiorss/sample-cpp-plugin/blob/master/main.cpp)\n- [how-much-overhead-can-the-fpic-flag-add](https://stackoverflow.com/questions/15861759/how-much-overhead-can-the-fpic-flag-add)\n\n## Licensing\n\nSee the [LICENSE](LICENSE) document.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbensuperpc%2Fc_plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbensuperpc%2Fc_plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbensuperpc%2Fc_plugin/lists"}