owntone-server/src/remote_pairing.h
chme accab800ac [pairing] Refactor remote_pairing to use cmdbase
This allows to call a sync command that returns the outcome of a pairing
request. And that will be useful for the JSON API and the web interface.
2020-03-18 14:56:05 +01:00

24 lines
345 B
C

#ifndef __REMOTE_PAIRING_H__
#define __REMOTE_PAIRING_H__
#define REMOTE_ERROR -1
#define REMOTE_INVALID_PIN -2
void
remote_pairing_kickoff(char **arglist);
int
remote_pairing_pair(const char *pin);
char *
remote_pairing_get_name(void);
int
remote_pairing_init(void);
void
remote_pairing_deinit(void);
#endif /* !__REMOTE_PAIRING_H__ */