brei: remove some obsolete functions

This commit is contained in:
Peter Hutterer 2023-02-07 14:34:49 +10:00
parent df673b140d
commit 8d2da0d857
2 changed files with 0 additions and 26 deletions

View file

@ -31,21 +31,6 @@
#include "brei-shared.h"
struct brei_message_private {
struct brei_message base;
int *fd;
};
int
brei_message_take_fd(struct brei_message *m)
{
struct brei_message_private *msg = (struct brei_message_private*)m;
int fd = *msg->fd;
*msg->fd = -1;
return fd;
}
/**
* Return the number of int32s required to store count bytes.
*/

View file

@ -84,17 +84,6 @@ brei_send_message(int fd,
size_t nargs,
va_list args);
/**
* Return the first file descriptor passed along with this message, or -1.
* You must only call this when a message is supposed to have an fd.
*
* Brei can not determine which message an fd belongs to, hence calling this
* function for a non-fd-carrying message will take that fd away from the
* message that fd actually belongs to.
*/
int
brei_message_take_fd(struct brei_message *b);
/**
* Dispatch messages for the data on fd.
* The callback is called for each protocol message, parsing must be done by