{"id":15049381,"url":"https://github.com/program--/dynio","last_synced_at":"2026-01-02T01:28:09.822Z","repository":{"id":207992313,"uuid":"720577740","full_name":"program--/dynio","owner":"program--","description":"dynamically loaded I/O drivers","archived":false,"fork":false,"pushed_at":"2023-11-30T08:17:17.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T20:41:12.690Z","etag":null,"topics":["c89","cpp","data-formats","drivers","dynamic-loading"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/program--.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-11-18T22:52:13.000Z","updated_at":"2023-12-03T03:26:41.000Z","dependencies_parsed_at":"2023-11-19T00:20:14.299Z","dependency_job_id":"4807f3c0-b669-400b-886b-0138a66d932d","html_url":"https://github.com/program--/dynio","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"d3b9980e1170103d67aeb109cca276c7684c1a9e"},"previous_names":["program--/dynio"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/program--%2Fdynio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/program--%2Fdynio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/program--%2Fdynio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/program--%2Fdynio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/program--","download_url":"https://codeload.github.com/program--/dynio/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243505960,"owners_count":20301619,"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":["c89","cpp","data-formats","drivers","dynamic-loading"],"created_at":"2024-09-24T21:20:02.487Z","updated_at":"2026-01-02T01:28:09.788Z","avatar_url":"https://github.com/program--.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dynio: Dynamic I/O Drivers\n\n## Usage\n\nThis library exposes a C header, `driver.h` for both producers and consumers.\n\n### Producers (aka driver implementors)\n\nAt a minimum, driver implementations require:\n\n1. The registration function, which allocates and assigns your new\n   driver to passed pointer:\n   ```c\n   extern \"C\" void register_driver(dyn_driver**);\n   ```\n\n2. The deregistration function, which deallocates your created driver:\n   ```c\n   extern \"C\" void deregister_driver(dyn_driver**);\n   ```\n\n3. An implementation of your driver providing **3 functions**,\n   - `dyn_driver::option`, which is a pointer to a function that\n     returns a `dyn_driver_option`.\n   - `dyn_driver::read`, which performs the reading portion of your driver.\n   - `dyn_driver::write`, which performs the writing portion of your driver.\n\n4. The source file containing the above 3 requirements to be compilable as a shared library. Drivers in dynio are loaded dynamically via `dlopen`.\n\nAny internal state or functionality for your driver can be stored in the `dyn_driver::internals` void pointer.\n\nSee `test/csv/csv.{cpp/hpp}` for a producer view of how `example::csv` is implemented.\n\n### Consumers (aka driver users)\n\nUsers of driver implementations are intended to be C++ users, and should use\n`driver.hpp` (the C++ header), which provides a C++ abstraction of `dyn_driver`\nand the template function `load_driver`, which handles loading from a dynio-based\nshared-library driver.\n\nSee `test/csv_test.cpp` for a consumer view of how `example::csv` is loaded.\n\n## License\n\nDistributed under the [Boost Software License, Version 1.0](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogram--%2Fdynio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprogram--%2Fdynio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogram--%2Fdynio/lists"}