Public API is not convenient
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
rohc | Status tracked in Rohc-main | |||||
Rohc-main |
Fix Released
|
Wishlist
|
Didier Barvaux |
Bug Description
The current public API is difficult to use:
1. several functions shall be called to initiate the library,
2. many functions do not report success or error,
3. many functions mix status and packet length in return value,
4. there are 2 functions for decompression (one for small CIDs and one for
large/small CIDs),
5. some functions do not use the "rohc_" prefix in their names,
6. some functions related to statistics store their output in strings,
7. there is no mean to configure the way the library logs infos,
8. every user parameters shall be set by a specific function (one function
for all is not convenient and not future-proof),
9. many private functions/
users while they should not,
10. merge the 3 librohc_
librohc.so
11. put all public headers in a subdir, ie. /usr/include/
12. make configuration uni- and bi-directionnal mode clearer
13. and so on...
The following blog post contains some advices that might be followed during API rewrite: davidz25. blogspot. com/2011/ 06/writing- c-library- part-1. html
http://