|
891 | 891 | zlist_t * |
892 | 892 | zdir_list (zdir_t *self); |
893 | 893 |
|
| 894 | +// Returns a sorted list of char*; Each entry in the list is a path of a file |
| 895 | +// or directory contained in self. |
| 896 | +zlist_t * |
| 897 | + zdir_list_paths (zdir_t *self); |
| 898 | +
|
894 | 899 | // Remove directory, optionally including all files that it contains, at |
895 | 900 | // all levels. If force is false, will only remove the directory if empty. |
896 | 901 | // If force is true, will remove all files and all subdirectories. |
|
1635 | 1640 | const char * |
1636 | 1641 | ziflist_netmask (ziflist_t *self); |
1637 | 1642 |
|
| 1643 | +// Return the current interface MAC address as a printable string |
| 1644 | +const char * |
| 1645 | + ziflist_mac (ziflist_t *self); |
| 1646 | +
|
1638 | 1647 | // Return the list of interfaces. |
1639 | 1648 | void |
1640 | 1649 | ziflist_print (ziflist_t *self); |
|
1694 | 1703 | zlist_item (zlist_t *self); |
1695 | 1704 |
|
1696 | 1705 | // Append an item to the end of the list, return 0 if OK or -1 if this |
1697 | | -// failed for some reason (out of memory). Note that if a duplicator has |
| 1706 | +// failed for some reason (invalid input). Note that if a duplicator has |
1698 | 1707 | // been set, this method will also duplicate the item. |
1699 | 1708 | int |
1700 | 1709 | zlist_append (zlist_t *self, void *item); |
1701 | 1710 |
|
1702 | 1711 | // Push an item to the start of the list, return 0 if OK or -1 if this |
1703 | | -// failed for some reason (out of memory). Note that if a duplicator has |
| 1712 | +// failed for some reason (invalid input). Note that if a duplicator has |
1704 | 1713 | // been set, this method will also duplicate the item. |
1705 | 1714 | int |
1706 | 1715 | zlist_push (zlist_t *self, void *item); |
|
1791 | 1800 |
|
1792 | 1801 | // Add an item to the head of the list. Calls the item duplicator, if any, |
1793 | 1802 | // on the item. Resets cursor to list head. Returns an item handle on |
1794 | | -// success, NULL if memory was exhausted. |
| 1803 | +// success. |
1795 | 1804 | void * |
1796 | 1805 | zlistx_add_start (zlistx_t *self, void *item); |
1797 | 1806 |
|
1798 | 1807 | // Add an item to the tail of the list. Calls the item duplicator, if any, |
1799 | 1808 | // on the item. Resets cursor to list head. Returns an item handle on |
1800 | | -// success, NULL if memory was exhausted. |
| 1809 | +// success. |
1801 | 1810 | void * |
1802 | 1811 | zlistx_add_end (zlistx_t *self, void *item); |
1803 | 1812 |
|
|
1902 | 1911 | // duplicator, if any, on the item. If low_value is true, starts searching |
1903 | 1912 | // from the start of the list, otherwise searches from the end. Use the item |
1904 | 1913 | // comparator, if any, to find where to place the new node. Returns a handle |
1905 | | -// to the new node, or NULL if memory was exhausted. Resets the cursor to the |
1906 | | -// list head. |
| 1914 | +// to the new node. Resets the cursor to the list head. |
1907 | 1915 | void * |
1908 | 1916 | zlistx_insert (zlistx_t *self, void *item, bool low_value); |
1909 | 1917 |
|
|
2360 | 2368 |
|
2361 | 2369 | // Connects process stdin with a readable ('>', connect) zeromq socket. If |
2362 | 2370 | // socket argument is NULL, zproc creates own managed pair of inproc |
2363 | | -// sockets. The writable one is then accessbile via zproc_stdin method. |
| 2371 | +// sockets. The writable one is then accessible via zproc_stdin method. |
2364 | 2372 | void |
2365 | 2373 | zproc_set_stdin (zproc_t *self, void *socket); |
2366 | 2374 |
|
2367 | 2375 | // Connects process stdout with a writable ('@', bind) zeromq socket. If |
2368 | 2376 | // socket argument is NULL, zproc creates own managed pair of inproc |
2369 | | -// sockets. The readable one is then accessbile via zproc_stdout method. |
| 2377 | +// sockets. The readable one is then accessible via zproc_stdout method. |
2370 | 2378 | void |
2371 | 2379 | zproc_set_stdout (zproc_t *self, void *socket); |
2372 | 2380 |
|
2373 | 2381 | // Connects process stderr with a writable ('@', bind) zeromq socket. If |
2374 | 2382 | // socket argument is NULL, zproc creates own managed pair of inproc |
2375 | | -// sockets. The readable one is then accessbile via zproc_stderr method. |
| 2383 | +// sockets. The readable one is then accessible via zproc_stderr method. |
2376 | 2384 | void |
2377 | 2385 | zproc_set_stderr (zproc_t *self, void *socket); |
2378 | 2386 |
|
|
4649 | 4657 | zosc_t * |
4650 | 4658 | zosc_frommem (char *data, size_t size); |
4651 | 4659 |
|
| 4660 | +// Create a new zosc message from a string. This the same syntax as |
| 4661 | +// zosc_create but written as a single line string. |
| 4662 | +zosc_t * |
| 4663 | + zosc_fromstring (const char *oscstring); |
| 4664 | +
|
4652 | 4665 | // Create a new zosc message from the given format and arguments. |
4653 | 4666 | // The format type tags are as follows: |
4654 | 4667 | // i - 32bit integer |
|
4752 | 4765 | zosc_t * |
4753 | 4766 | zosc_unpack (zframe_t *frame); |
4754 | 4767 |
|
| 4768 | +// Return a string describing the the OSC message. The returned string must be freed by the caller. |
| 4769 | +char * |
| 4770 | + zosc_dump (zosc_t *self); |
| 4771 | +
|
4755 | 4772 | // Dump OSC message to stdout, for debugging and tracing. |
4756 | 4773 | void |
4757 | 4774 | zosc_print (zosc_t *self); |
|
0 commit comments