<feed xmlns='http://www.w3.org/2005/Atom'>
<title>libubox/ustream.h, branch master</title>
<subtitle>C utility functions for OpenWrt</subtitle>
<id>https://git-03.infra.openwrt.org/project/libubox/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/project/libubox/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/libubox/'/>
<updated>2024-03-29T12:59:21Z</updated>
<entry>
<title>ustream: prevent recursive calls to the read callback</title>
<updated>2024-03-29T12:59:21Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2024-03-29T09:23:28Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/libubox/commit/?id=eb9bcb64185ac155c02cc1a604692c4b00368324'/>
<id>urn:sha1:eb9bcb64185ac155c02cc1a604692c4b00368324</id>
<content type='text'>
Simplifies stacked ustreams and calling poll from the read function.
Reuse an unused leftover struct member in order to not break ABI.

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>ustream: Add format string checks to ustream_(v)printf()</title>
<updated>2019-06-16T14:30:01Z</updated>
<author>
<name>Hauke Mehrtens</name>
</author>
<published>2019-06-09T11:00:21Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/libubox/commit/?id=ecf56174da9614a0b3107d33def463eefb4d7785'/>
<id>urn:sha1:ecf56174da9614a0b3107d33def463eefb4d7785</id>
<content type='text'>
This tells the compiler that these functions are takeing a format
string, the compiler will now do additional checks and is able to emitt
a compile warning in case the format string is not valid.

Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
<entry>
<title>ustream: add function ustream_read().</title>
<updated>2015-01-21T19:00:39Z</updated>
<author>
<name>Yousong Zhou</name>
</author>
<published>2015-01-21T13:21:25Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/libubox/commit/?id=60236c485387d33e1d02398a953a0834ad125161'/>
<id>urn:sha1:60236c485387d33e1d02398a953a0834ad125161</id>
<content type='text'>
It can be used to fill caller-specified buffer with data already in
ustream read buffer.  Useful in the following use pattern.

	int available = ustream_pending_data(s, false);
	if (available &gt;= sizeof(struct msghdr)) {
		struct msghdr h;
		ustream_read(s, &amp;h, sizeof(h));
	}

Signed-off-by: Yousong Zhou &lt;yszhou4tech@gmail.com&gt;
</content>
</entry>
<entry>
<title>ustream: another fix for ustream_read_buf_full() with split read buffers</title>
<updated>2013-01-31T17:10:52Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2013-01-31T17:10:16Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/libubox/commit/?id=95fde87029b91460f79391488234c67d2e32fb7a'/>
<id>urn:sha1:95fde87029b91460f79391488234c67d2e32fb7a</id>
<content type='text'>
Signed-off-by: Felix Fietkau &lt;nbd@openwrt.org&gt;
</content>
</entry>
<entry>
<title>ustream: fix ustream_read_buf_full() for multiple read buffers</title>
<updated>2013-01-30T15:52:32Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2013-01-30T15:52:32Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/libubox/commit/?id=e72b65c89936aafe16c28255ce326aac77f876a7'/>
<id>urn:sha1:e72b65c89936aafe16c28255ce326aac77f876a7</id>
<content type='text'>
Signed-off-by: Felix Fietkau &lt;nbd@openwrt.org&gt;
</content>
</entry>
<entry>
<title>ustream: add ustream_pending_data accessor function</title>
<updated>2013-01-01T15:10:39Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2013-01-01T15:10:14Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/libubox/commit/?id=7a117988d9f75c7ccf7eeca7b59e61a4b5b5c3e4'/>
<id>urn:sha1:7a117988d9f75c7ccf7eeca7b59e61a4b5b5c3e4</id>
<content type='text'>
Signed-off-by: Felix Fietkau &lt;nbd@openwrt.org&gt;
</content>
</entry>
<entry>
<title>ustream: add ustream_read_buf_full() helper</title>
<updated>2012-12-30T14:25:35Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2012-12-30T14:25:35Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/libubox/commit/?id=975ac3e5e30f1106b6b4ea69c8cbf10c7ce8483e'/>
<id>urn:sha1:975ac3e5e30f1106b6b4ea69c8cbf10c7ce8483e</id>
<content type='text'>
Signed-off-by: Felix Fietkau &lt;nbd@openwrt.org&gt;
</content>
</entry>
<entry>
<title>ustream: make notify_state optional as well</title>
<updated>2012-10-29T23:00:57Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2012-10-29T23:00:57Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/libubox/commit/?id=a9b44ebe556c3f60de2fc1154d48a26f43aa15b7'/>
<id>urn:sha1:a9b44ebe556c3f60de2fc1154d48a26f43aa15b7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ustream: mark notify_read cb as optional</title>
<updated>2012-10-29T23:00:23Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2012-10-29T23:00:23Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/libubox/commit/?id=efc9f4b702f44854193d015b72831b4530258aaf'/>
<id>urn:sha1:efc9f4b702f44854193d015b72831b4530258aaf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ustream: add a poll callback function defined by the ustream implementation</title>
<updated>2012-10-29T22:39:48Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2012-10-29T22:39:48Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/libubox/commit/?id=dc69ce4799deb53797266d55311871b9c0062066'/>
<id>urn:sha1:dc69ce4799deb53797266d55311871b9c0062066</id>
<content type='text'>
</content>
</entry>
</feed>
