{"id":23039161,"url":"https://github.com/alishbz/bridge_pattern","last_synced_at":"2025-04-02T23:46:11.657Z","repository":{"id":180690150,"uuid":"665535995","full_name":"Alishbz/bridge_pattern","owner":"Alishbz","description":"It is a demo of creating a pipeline between two objects with c language without using global data.","archived":false,"fork":false,"pushed_at":"2023-07-23T13:54:40.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-08T14:12:48.199Z","etag":null,"topics":["bridge-pattern","c"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Alishbz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-07-12T12:24:10.000Z","updated_at":"2023-12-15T12:57:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"0c99c876-b19f-4c6b-ae45-d25917fb4496","html_url":"https://github.com/Alishbz/bridge_pattern","commit_stats":null,"previous_names":["alishbz/bridge_pattern"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alishbz%2Fbridge_pattern","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alishbz%2Fbridge_pattern/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alishbz%2Fbridge_pattern/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alishbz%2Fbridge_pattern/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Alishbz","download_url":"https://codeload.github.com/Alishbz/bridge_pattern/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246911489,"owners_count":20853654,"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":["bridge-pattern","c"],"created_at":"2024-12-15T18:28:26.600Z","updated_at":"2025-04-02T23:46:11.631Z","avatar_url":"https://github.com/Alishbz.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bridge_pattern\n\nIt is a demo of creating a pipeline between two objects with c language without using global data.\n\nIn the Demo there is two example particion, \n 1- bridge_pattern_test.c/.h  example\n 2- Wifi \u003c-\u003e USB (.c/.h) tasks comminication example -\u003e for do that abstract interface -\u003e bridge.h\n\n--------------------------------------------------------------------------------------------------------------------------------------------------------------------\n\n # Main Logic\n\nImagine a container object , name is -\u003e CX_AREA , it can hold any data, or list , or queue. Can be manageable.\n - BRIDGE_OBJ_CREATE( CX_AREA );     -\u003e Create CX_AREA in local area\n\nImagine a pointer , name is -\u003e CXP, and it hook to CX_AREA, and another pointer to pointer hooks to CXP and its name is -\u003e CXPP.\n  -  BRIDGE_CONNECTION_ASSIGN(CX_AREA, namex, wifi , usb );\n\nAnd this pointers Created with in main tasks object. -\u003e\n   - BRIDGE_FIRST_PILE_CREATE( namex );\n   - BRIDGE_SECOND_PILE_CREATE( namex ); ( İf you wanna create doubleway)\n  \n\nAnd Of course load the bridges -\u003e \n  - BRIDGE_FIRST_PILE_INIT(namex,me);\n  - BRIDGE_SECOND_PILE_INIT(namex,me); ( İf you wanna create doubleway)\n\nThen its ready to connected\n  - BRIDGE_GOTO_CROSS(namex, me, wifi_obj_t); (or reverse)\n\nCXPP can reach CXP and it can reach main local area, or reverse. \n\nAnd if these are crossed, it becomes a doubleway!\n\n\nIn essence, it's a memory tricking technique, and it's pretty useful. Especially in multi-threaded embedded software projects, you can develop multi-modular software.\n\n--------------------------------------------------------------------------------------------------------------------------------------------------------------------\n\n\n# Requirements\n------\n'PURE and OOP C' \nVisual Studio 2022 for test. \nit can be use in every Hardware/PC/Framework.\n \n# Contact\n------\nCreated By Ali Sahbaz \n-\u003e ali_sahbaz@outlook.com \n-\u003e [MY LINKEDIN ACCOUNT](https://www.linkedin.com/in/ali-%C5%9Fahbaz-6588a8115/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falishbz%2Fbridge_pattern","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falishbz%2Fbridge_pattern","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falishbz%2Fbridge_pattern/lists"}