File: capture.h

package info (click to toggle)
libmpdclient 2.22-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 896 kB
  • sloc: ansic: 9,923; makefile: 9
file content (27 lines) | stat: -rw-r--r-- 463 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// SPDX-License-Identifier: BSD-2-Clause
// Copyright The Music Player Daemon Project

#ifndef CAPTURE_H
#define CAPTURE_H

#include <stdbool.h>

struct test_capture {
	int fd;

	char buffer[4096];
};

struct mpd_connection *
test_capture_init(struct test_capture *tc);

void
test_capture_deinit(struct test_capture *tc);

const char *
test_capture_receive(struct test_capture *tc);

bool
test_capture_send(struct test_capture *tc, const char *response);

#endif