Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/railsware/libskypekit
Thread-safe C library with synchronous API using asynchronous C++ SkypeKit SDK
https://github.com/railsware/libskypekit
Last synced: 5 days ago
JSON representation
Thread-safe C library with synchronous API using asynchronous C++ SkypeKit SDK
- Host: GitHub
- URL: https://github.com/railsware/libskypekit
- Owner: railsware
- License: mit
- Created: 2012-05-10T12:35:05.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-09-21T11:28:56.000Z (about 12 years ago)
- Last Synced: 2024-07-31T22:56:10.219Z (3 months ago)
- Language: C
- Homepage: http://railsware.github.com/libskypekit/
- Size: 621 KB
- Stars: 19
- Watchers: 6
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Libskypekit
Libskypekit is thread-safe C library that provides *synchronous* SkypeKit API for *asynchronous* C++ SkypeKit SDK.
## Description
The goal of Libskypekit is catch all asynchronous callbacks of SkypeKit SDK and push they as events into one queue.
Then regular synchronous application can pull queue, retrieve each event and do own business logic.
Currently implemented events:
* Account status changed
* Chat message received## Memory management
For each new event Libskypekit dynamically allocates memory for event structure and for event data and then push event into internal events queue. The queue size is only limited by size of operating system available memory.
So after processing certain event you are responsible to free event memory otherwise you will have memory leak. See corresponding API call.## Dependencies
* SkypeKit SDK 4.x.x
## Building
**Note.** Before building libskypekit you must obtain, unpack and compile SkypeKit SDK first! For now SkypeKit for Embedded costs $5 and the file with SDK is named like `sdp-distro-embedded-skypekit_4.3.1.17_1899690.tar.gz` (depends on the current version). After that you have to compile the C++ sources in the `interfaces/skype/cpp_embedded` directory. Finally, you can build libskypekit:
$ git clone [email protected]:railsware/libskypekit.git
$ cd libskypekit
$ DEBUG=1 SKYPEKIT_SDK=path/to/compliled/embedded-sdk ./build.sh`DEBUG=1` is optional but gives your opportunity to see what is going in library.
## Issues on x86_64
When you have error like:
relocation R_X86_64_32S against `vtable for SEClientSession' can not be used when making a shared object; recompile with -fPIC
Try to recompile SDK with `-fPIC` :
export CC="gcc -fPIC"
export CXX="g++ -fPIC"
./BuildWithCmake.sh## Installation
To install bin, include, lib files into `/usr/local` just type:
$ sudo ./install.sh
Probably it's better to create package for your OS and install it via package manager.
## API
See [skypekit.h](https://github.com/railsware/libskypekit/blob/master/include/skypekit.h)
## Examples
In `examples` directory you may find out how you may use libevent.
Build it with:
$ ./build_examples.sh
Run ping_pong example:
$ ./bin/skypekit_ping_pong my.pem 127.0.0.1 8963 my_skypename my_password
## Author
* Andriy Yanko
## Contributors
* Volodymyr Bezobiuk
* Alexey Vasiliev## License
* Copyright (c) 2012 Railsware (www.railsware.com)
* [MIT](www.opensource.org/licenses/MIT)