Skip to content

Commit

Permalink
add fromstring method and split print into dump and print
Browse files Browse the repository at this point in the history
  • Loading branch information
sphaero committed Jun 19, 2024
1 parent e6f0a0f commit 3547e9c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions api/zosc.api
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@
<argument name = "size" type = "size" />
</constructor>

<constructor name = "fromstring" state = "draft">
Create a new zosc message from a string. This the same syntax as
zosc_create but written as a single line string.
<argument name = "oscstring" type = "string" />
</constructor>

<constructor name = "create">
Create a new zosc message from the given format and arguments.
The format type tags are as follows:
Expand Down Expand Up @@ -168,6 +174,11 @@
<return type = "zosc" fresh = "1" />
</method>

<method name = "dump">
Return a string describing the the OSC message. The returned string must be freed by the caller.
<return type = "string" fresh="1" />
</method>

<method name = "print">
Dump OSC message to stdout, for debugging and tracing.
</method>
Expand Down

0 comments on commit 3547e9c

Please sign in to comment.