varlink / libvarlink

C implementation of the Varlink protocol and command line tool
Apache License 2.0
87 stars 15 forks source link

Include C Examples #11

Closed mmstick closed 3 years ago

mmstick commented 5 years ago

There's some statistical evidence that most programmers evaluate, and learn how to use, libraries by their examples included with the project. So, it would be a good idea to include some examples for the C library so that C program authors will have a good idea about what's involved in getting this integrated with their projects.

afbjorklund commented 5 years ago

Here is one example: https://github.com/cherry-pick/com.redhat.resolver/tree/master/src

But something more "hello world" would probably be a good idea to include as documentation.

ghost commented 4 years ago

It's not mentioned in readme, but the tests feature several basic examples. The server-client example is the most complete: test-server-client.c

haraldh commented 3 years ago

added to README