permission: convert to C++

This commit is contained in:
Max Kellermann 2013-01-03 03:06:45 +01:00
parent b25cce464a
commit ddf112378b
7 changed files with 14 additions and 12 deletions

View File

@ -132,7 +132,6 @@ mpd_headers = \
src/output/httpd_client.h \
src/output/httpd_internal.h \
src/page.h \
src/permission.h \
src/player_control.h \
src/playlist.h \
src/playlist_error.h \
@ -282,7 +281,7 @@ src_mpd_SOURCES = \
src/path.c \
src/Mapper.cxx src/Mapper.hxx \
src/page.c \
src/permission.c \
src/Permission.cxx src/Permission.hxx \
src/PlayerThread.cxx src/PlayerThread.hxx \
src/player_control.c \
src/playlist.c \

View File

@ -31,7 +31,7 @@ extern "C" {
#include "OutputCommands.hxx"
#include "MessageCommands.hxx"
#include "OtherCommands.hxx"
#include "permission.h"
#include "Permission.hxx"
#include "tag.h"
extern "C" {

View File

@ -25,8 +25,8 @@ extern "C" {
extern "C" {
#include "fifo_buffer.h"
#include "resolver.h"
#include "permission.h"
}
#include "Permission.hxx"
#include "glib_socket.h"
#include <assert.h>

View File

@ -27,6 +27,7 @@
#include "Mapper.hxx"
#include "DatabaseGlue.hxx"
#include "DatabaseSimple.hxx"
#include "Permission.hxx"
extern "C" {
#include "daemon.h"
@ -47,7 +48,6 @@ extern "C" {
#include "output_all.h"
#include "volume.h"
#include "log.h"
#include "permission.h"
#include "pcm_resample.h"
#include "replay_gain_config.h"
#include "decoder_list.h"

View File

@ -37,9 +37,9 @@ extern "C" {
#include "decoder_print.h"
#include "volume.h"
#include "stats.h"
#include "permission.h"
}
#include "Permission.hxx"
#include "PlaylistFile.hxx"
extern "C" {

View File

@ -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
*
* This program is free software; you can redistribute it and/or modify
@ -18,10 +18,13 @@
*/
#include "config.h"
#include "permission.h"
#include "conf.h"
#include "Permission.hxx"
#include "mpd_error.h"
extern "C" {
#include "conf.h"
}
#include <glib.h>
#include <stdbool.h>

View File

@ -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
*
* 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.
*/
#ifndef MPD_PERMISSION_H
#define MPD_PERMISSION_H
#ifndef MPD_PERMISSION_HXX
#define MPD_PERMISSION_HXX
#define PERMISSION_NONE 0
#define PERMISSION_READ 1