libmpdclient
2.22
mpd
fingerprint.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSD-3-Clause
2
// Copyright The Music Player Daemon Project
3
10
#ifndef MPD_FINGERPRINT_H
11
#define MPD_FINGERPRINT_H
12
13
#include "compiler.h"
14
15
#include <stdbool.h>
16
#include <stddef.h>
17
18
struct
mpd_connection
;
19
struct
mpd_pair
;
20
21
enum
mpd_fingerprint_type
{
22
MPD_FINGERPRINT_TYPE_UNKNOWN
,
23
MPD_FINGERPRINT_TYPE_CHROMAPRINT
,
24
};
25
26
#ifdef __cplusplus
27
extern
"C"
{
28
#endif
29
33
mpd_pure
34
enum
mpd_fingerprint_type
35
mpd_parse_fingerprint_type
(
const
char
*
name
);
36
49
bool
50
mpd_send_getfingerprint
(
struct
mpd_connection
*connection,
const
char
*uri);
51
67
mpd_malloc
68
const
char
*
69
mpd_run_getfingerprint_chromaprint
(
struct
mpd_connection
*connection,
70
const
char
*uri,
71
char
*buffer,
size_t
buffer_size);
72
73
#ifdef __cplusplus
74
}
75
#endif
76
77
#endif
mpd_send_getfingerprint
bool mpd_send_getfingerprint(struct mpd_connection *connection, const char *uri)
mpd_run_getfingerprint_chromaprint
const char * mpd_run_getfingerprint_chromaprint(struct mpd_connection *connection, const char *uri, char *buffer, size_t buffer_size)
mpd_fingerprint_type
mpd_fingerprint_type
Definition
fingerprint.h:21
MPD_FINGERPRINT_TYPE_CHROMAPRINT
@ MPD_FINGERPRINT_TYPE_CHROMAPRINT
Definition
fingerprint.h:23
MPD_FINGERPRINT_TYPE_UNKNOWN
@ MPD_FINGERPRINT_TYPE_UNKNOWN
Definition
fingerprint.h:22
mpd_parse_fingerprint_type
enum mpd_fingerprint_type mpd_parse_fingerprint_type(const char *name)
mpd_connection
mpd_pair
Definition
pair.h:16
mpd_pair::name
const char * name
Definition
pair.h:18
Generated by
1.9.7