File: position.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 (41 lines) | stat: -rw-r--r-- 921 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// SPDX-License-Identifier: BSD-3-Clause
// Copyright The Music Player Daemon Project

/*! \file
 * \brief MPD client library
 *
 * Do not include this header directly.  Use mpd/client.h instead.
 */

#ifndef LIBMPDCLIENT_POSITION_H
#define LIBMPDCLIENT_POSITION_H

enum mpd_position_whence {
	/**
	 * The given number is an absolute position.  0 is the first
	 * song.
	 */
	MPD_POSITION_ABSOLUTE,

	/**
	 * The given number is a position after the current song.  0
	 * means right after the current song.
	 */
	MPD_POSITION_AFTER_CURRENT,

	/**
	 * The given number is a position before the current song.  0
	 * means right before the current song.
	 */
	MPD_POSITION_BEFORE_CURRENT,
};

/**
 * Looks up the character of the specified whence position.
 *
 * @return the charater, or "" if the whence position is absolute or not valid.
 */
const char *
mpd_position_whence_char(enum mpd_position_whence whence);

#endif