Jump to content

Talk:OS2 API: Difference between revisions

From EDM2
Prokushev (talk | contribs)
API definition format
RE: API def format
Line 4: Line 4:


How about describing API in an language-neutral format? I mean not in C notation but in something like SOM IDL? Because C API defination hard to read and some info missed (like ordinals and module names).
How about describing API in an language-neutral format? I mean not in C notation but in something like SOM IDL? Because C API defination hard to read and some info missed (like ordinals and module names).
== API def format ==
Language-neutral format is a good idea.  Having never seen SOM IDL I have no idea what that would look like.  Could you please post an example or two?
I had in mind that each API call would be a single page sectioned out.  For example, the API call and its parameters, then a section with the parameters explained with constants listed - if any.  Another section with example code.  Maybe a section with closely related functions.  A section detailing the return codes of that API call.
Thanks.  Daniel Lee Kruse

Revision as of 00:34, 14 December 2004

Please don't make this available to the outside world just yet. I'm still considering layout and content for the opening page. Thanks. Daniel Lee Kruse

API definition format

How about describing API in an language-neutral format? I mean not in C notation but in something like SOM IDL? Because C API defination hard to read and some info missed (like ordinals and module names).

API def format

Language-neutral format is a good idea. Having never seen SOM IDL I have no idea what that would look like. Could you please post an example or two?

I had in mind that each API call would be a single page sectioned out. For example, the API call and its parameters, then a section with the parameters explained with constants listed - if any. Another section with example code. Maybe a section with closely related functions. A section detailing the return codes of that API call. Thanks. Daniel Lee Kruse