2008-08-27 03:51:24 +00:00
|
|
|
----------------------
|
|
|
|
--- IMPORTANT TODO ---
|
|
|
|
----------------------
|
2008-09-09 18:18:28 +00:00
|
|
|
- proper support for extensions
|
|
|
|
- slot for ranges in descriptor
|
2008-11-28 04:59:52 +00:00
|
|
|
- extends is implemented as c-style function
|
|
|
|
whose name is built from the package, the base message type-name
|
|
|
|
and the member. which takes the base message and returns the
|
|
|
|
value, if it is found in "unknown_values".
|
2008-11-30 16:50:59 +00:00
|
|
|
boolean package__extension_member_name__get(Message *message,
|
|
|
|
type *out);
|
|
|
|
void package__extension_member_name__set_raw(type in,
|
|
|
|
ProtobufCUnknownValue *to_init);
|
2008-09-09 18:18:28 +00:00
|
|
|
- ensure enums are int-size
|
2008-08-27 03:51:24 +00:00
|
|
|
|
|
|
|
--------------------
|
|
|
|
--- NEEDED TESTS ---
|
|
|
|
--------------------
|
|
|
|
- test:
|
2008-08-27 02:14:42 +00:00
|
|
|
- service method lookups
|
|
|
|
- out-of-order fields in messages (ie if the number isn't ascending)
|
|
|
|
- gaps in numbers: check that the number of ranges is correct
|
2008-08-27 03:51:24 +00:00
|
|
|
- default values
|
2008-08-23 20:44:49 +00:00
|
|
|
|
2008-08-27 03:51:24 +00:00
|
|
|
---------------------
|
|
|
|
--- DOCUMENTATION ---
|
|
|
|
---------------------
|
|
|
|
Document:
|
|
|
|
- services
|
2008-08-25 17:50:52 +00:00
|
|
|
- check over documentation again
|
2008-08-22 22:15:42 +00:00
|
|
|
|
2008-08-27 03:51:24 +00:00
|
|
|
--------------------------
|
|
|
|
--- LOW PRIORITY STUFF ---
|
|
|
|
--------------------------
|
2008-08-22 22:15:42 +00:00
|
|
|
- support Group (whatever it is)
|
|
|
|
- almost no code generator options are obeyed
|
|
|
|
|
2008-08-27 03:51:24 +00:00
|
|
|
------------------------------------
|
|
|
|
--- EXTREMELY LOW PRIORITY STUFF ---
|
|
|
|
------------------------------------
|
2008-08-22 22:15:42 +00:00
|
|
|
- stop using qsort in the code generator: find some c++ish way to do it
|
2008-08-27 03:51:24 +00:00
|
|
|
|
|
|
|
----------------------------------------------
|
|
|
|
--- ISSUES WE ARE PROBABLY GOING TO IGNORE ---
|
|
|
|
----------------------------------------------
|
|
|
|
- strings may not contain NULs
|
|
|
|
|
|
|
|
-------------------------
|
|
|
|
--- IDEAS TO CONSIDER ---
|
|
|
|
-------------------------
|
|
|
|
|
|
|
|
- lifetime functions for messages:
|
|
|
|
message__new()
|
|
|
|
return a new message using an allocator with standard allocation policy
|
|
|
|
message__unpack_onto(...)
|
|
|
|
unpack onto an initialized message
|
|
|
|
message__clear(...)
|
|
|
|
clears all allocations, does not free the message itself
|
|
|
|
message__free(...)
|
|
|
|
free the message.
|
|
|
|
[yeah, right: after typing it out, i see it's way too complicated]
|
2008-11-30 15:57:52 +00:00
|
|
|
|
|
|
|
- switching to pure C.
|
|
|
|
- Rewrite the code-generator in C, including the parser.
|
|
|
|
- This would have the huge advantage that we could use ".proto" files
|
|
|
|
directly, instead of having to invoke the compilers.
|