permission: convert to C++
This commit is contained in:
parent
b25cce464a
commit
ddf112378b
|
@ -132,7 +132,6 @@ mpd_headers = \
|
||||||
src/output/httpd_client.h \
|
src/output/httpd_client.h \
|
||||||
src/output/httpd_internal.h \
|
src/output/httpd_internal.h \
|
||||||
src/page.h \
|
src/page.h \
|
||||||
src/permission.h \
|
|
||||||
src/player_control.h \
|
src/player_control.h \
|
||||||
src/playlist.h \
|
src/playlist.h \
|
||||||
src/playlist_error.h \
|
src/playlist_error.h \
|
||||||
|
@ -282,7 +281,7 @@ src_mpd_SOURCES = \
|
||||||
src/path.c \
|
src/path.c \
|
||||||
src/Mapper.cxx src/Mapper.hxx \
|
src/Mapper.cxx src/Mapper.hxx \
|
||||||
src/page.c \
|
src/page.c \
|
||||||
src/permission.c \
|
src/Permission.cxx src/Permission.hxx \
|
||||||
src/PlayerThread.cxx src/PlayerThread.hxx \
|
src/PlayerThread.cxx src/PlayerThread.hxx \
|
||||||
src/player_control.c \
|
src/player_control.c \
|
||||||
src/playlist.c \
|
src/playlist.c \
|
||||||
|
|
|
@ -31,7 +31,7 @@ extern "C" {
|
||||||
#include "OutputCommands.hxx"
|
#include "OutputCommands.hxx"
|
||||||
#include "MessageCommands.hxx"
|
#include "MessageCommands.hxx"
|
||||||
#include "OtherCommands.hxx"
|
#include "OtherCommands.hxx"
|
||||||
#include "permission.h"
|
#include "Permission.hxx"
|
||||||
#include "tag.h"
|
#include "tag.h"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
@ -25,8 +25,8 @@ extern "C" {
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include "fifo_buffer.h"
|
#include "fifo_buffer.h"
|
||||||
#include "resolver.h"
|
#include "resolver.h"
|
||||||
#include "permission.h"
|
|
||||||
}
|
}
|
||||||
|
#include "Permission.hxx"
|
||||||
#include "glib_socket.h"
|
#include "glib_socket.h"
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
#include "Mapper.hxx"
|
#include "Mapper.hxx"
|
||||||
#include "DatabaseGlue.hxx"
|
#include "DatabaseGlue.hxx"
|
||||||
#include "DatabaseSimple.hxx"
|
#include "DatabaseSimple.hxx"
|
||||||
|
#include "Permission.hxx"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include "daemon.h"
|
#include "daemon.h"
|
||||||
|
@ -47,7 +48,6 @@ extern "C" {
|
||||||
#include "output_all.h"
|
#include "output_all.h"
|
||||||
#include "volume.h"
|
#include "volume.h"
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
#include "permission.h"
|
|
||||||
#include "pcm_resample.h"
|
#include "pcm_resample.h"
|
||||||
#include "replay_gain_config.h"
|
#include "replay_gain_config.h"
|
||||||
#include "decoder_list.h"
|
#include "decoder_list.h"
|
||||||
|
|
|
@ -37,9 +37,9 @@ extern "C" {
|
||||||
#include "decoder_print.h"
|
#include "decoder_print.h"
|
||||||
#include "volume.h"
|
#include "volume.h"
|
||||||
#include "stats.h"
|
#include "stats.h"
|
||||||
#include "permission.h"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#include "Permission.hxx"
|
||||||
#include "PlaylistFile.hxx"
|
#include "PlaylistFile.hxx"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2003-2011 The Music Player Daemon Project
|
* Copyright (C) 2003-2013 The Music Player Daemon Project
|
||||||
* http://www.musicpd.org
|
* http://www.musicpd.org
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
@ -18,10 +18,13 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "permission.h"
|
#include "Permission.hxx"
|
||||||
#include "conf.h"
|
|
||||||
#include "mpd_error.h"
|
#include "mpd_error.h"
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
#include "conf.h"
|
||||||
|
}
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2003-2011 The Music Player Daemon Project
|
* Copyright (C) 2003-2013 The Music Player Daemon Project
|
||||||
* http://www.musicpd.org
|
* http://www.musicpd.org
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
@ -17,8 +17,8 @@
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MPD_PERMISSION_H
|
#ifndef MPD_PERMISSION_HXX
|
||||||
#define MPD_PERMISSION_H
|
#define MPD_PERMISSION_HXX
|
||||||
|
|
||||||
#define PERMISSION_NONE 0
|
#define PERMISSION_NONE 0
|
||||||
#define PERMISSION_READ 1
|
#define PERMISSION_READ 1
|
Loading…
Reference in New Issue