xref: /haiku/src/kits/storage/AddOnImage.h (revision 4c8e85b316c35a9161f5a1c50ad70bc91c83a76f)
1 //----------------------------------------------------------------------
2 //  This software is part of the Haiku distribution and is covered
3 //  by the MIT License.
4 //---------------------------------------------------------------------
5 
6 #ifndef _ADD_ON_IMAGE_H
7 #define _ADD_ON_IMAGE_H
8 
9 #include <image.h>
10 
11 namespace BPrivate {
12 
13 class AddOnImage {
14 public:
15 	AddOnImage();
16 	~AddOnImage();
17 
18 	status_t Load(const char* path);
19 	void Unload();
20 
21 	void SetID(image_id id);
22 	image_id ID() const	{ return fID; }
23 
24 private:
25 	image_id	fID;
26 };
27 
28 }	// namespace BPrivate
29 
30 using BPrivate::AddOnImage;
31 
32 #endif	// _ADD_ON_IMAGE_H
33