Header indentation updated, changed "* " style.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31930 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2009-07-29 17:58:46 +00:00
parent 1857ae604e
commit e4b11fdb81
2 changed files with 91 additions and 83 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
/* /*
* Copyright 2004-2008, Haiku. All rights reserved. * Copyright 2004-2009, Haiku. All rights reserved.
* Distributed under the terms of the MIT License. * Distributed under the terms of the MIT license.
* *
* Authors: * Authors:
* Marcus Overhagen * Marcus Overhagen
@@ -29,7 +29,7 @@
#include "debug.h" #include "debug.h"
// #pragma mark ImageLoader // #pragma mark - ImageLoader
/*! The ImageLoader class is a convenience class to temporarily load /*! The ImageLoader class is a convenience class to temporarily load
an image file, and unload it on deconstruction automatically. an image file, and unload it on deconstruction automatically.
+20 -12
View File
@@ -1,14 +1,19 @@
/* /*
** Copyright 2004, the OpenBeOS project. All rights reserved. * Copyright 2004-2009, Haiku. All rights reserved.
** Distributed under the terms of the OpenBeOS License. * Distributed under the terms of the MIT license.
** *
** Authors: Marcus Overhagen, Axel Dörfler * Authors:
* Marcus Overhagen
* Axel Dörfler
*/ */
#ifndef _ADD_ON_MANAGER_H #ifndef _ADD_ON_MANAGER_H
#define _ADD_ON_MANAGER_H #define _ADD_ON_MANAGER_H
// Manager for codec add-ons (reader, writer, encoder, decoder)
// BMediaAddOn are handled in the NodeManager /*! Manager for codec add-ons (reader, writer, encoder, decoder)
BMediaAddOn are handled in the NodeManager
*/
#include "ReaderPlugin.h" #include "ReaderPlugin.h"
#include "DecoderPlugin.h" #include "DecoderPlugin.h"
@@ -18,6 +23,7 @@
#include "AddOnMonitor.h" #include "AddOnMonitor.h"
#include "AddOnMonitorHandler.h" #include "AddOnMonitorHandler.h"
class AddOnManager { class AddOnManager {
public: public:
AddOnManager(); AddOnManager();
@@ -26,18 +32,20 @@ class AddOnManager {
void LoadState(); void LoadState();
void SaveState(); void SaveState();
status_t GetDecoderForFormat(xfer_entry_ref *out_ref, status_t GetDecoderForFormat(xfer_entry_ref* _ref,
const media_format &in_format); const media_format& format);
status_t GetReaders(xfer_entry_ref *out_res, int32 *out_count, status_t GetReaders(xfer_entry_ref* _ref,
int32 max_count); int32* _count, int32 maxCount);
private: private:
status_t RegisterAddOn(BEntry& entry); status_t RegisterAddOn(BEntry& entry);
void RegisterAddOns(); void RegisterAddOns();
void RegisterReader(ReaderPlugin *reader, const entry_ref &ref); void RegisterReader(ReaderPlugin* reader,
void RegisterDecoder(DecoderPlugin *decoder, const entry_ref &ref); const entry_ref& ref);
void RegisterDecoder(DecoderPlugin* decoder,
const entry_ref& ref);
private: private:
struct reader_info { struct reader_info {