Add mud_can_push()

This commit is contained in:
angt committed 2016-04-14 19:41:59 +00:00
1 parent cd9fb7ce34
commit 23a2cc1e24
2 files changed
+6

No files matched your search

+5
View File
@@ -716,6 +716,11 @@ int mud_can_pull (struct mud *mud)
return (mud->rx.start != MUD_PACKET_NEXT(mud->rx.end)); return (mud->rx.start != MUD_PACKET_NEXT(mud->rx.end));
} }
int mud_can_push (struct mud *mud)
{
return (mud->tx.start != mud->tx.end);
}
int mud_is_up (struct mud *mud) int mud_is_up (struct mud *mud)
{ {
struct path *path; struct path *path;
+1
View File
@@ -17,6 +17,7 @@ int mud_bind (struct mud *, const char *);
int mud_peer (struct mud *, const char *, const char *); int mud_peer (struct mud *, const char *, const char *);
int mud_can_pull (struct mud *); int mud_can_pull (struct mud *);
int mud_can_push (struct mud *);
int mud_is_up (struct mud *); int mud_is_up (struct mud *);
int mud_pull (struct mud *); int mud_pull (struct mud *);