2013-02-07 04:44:12 +00:00
|
|
|
#ifndef __mpw_rm_h__
|
|
|
|
#define __mpw_rm_h__
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
2016-08-01 17:56:43 +00:00
|
|
|
#include <macos/tool_return.h>
|
|
|
|
|
2013-02-07 04:44:12 +00:00
|
|
|
namespace RM
|
|
|
|
{
|
2013-03-27 03:54:08 +00:00
|
|
|
|
2015-02-18 14:32:01 +00:00
|
|
|
namespace Native
|
2013-03-27 03:54:08 +00:00
|
|
|
{
|
2016-08-01 17:56:43 +00:00
|
|
|
using MacOS::tool_return;
|
|
|
|
|
|
|
|
tool_return<void> SetResLoad(bool tf);
|
|
|
|
tool_return<uint32_t> GetResource(uint32_t type, uint16_t id);
|
2016-08-01 18:11:02 +00:00
|
|
|
tool_return<int16_t> OpenResFile(const std::string &path_name, uint16_t permissions = 0);
|
2016-08-01 17:56:43 +00:00
|
|
|
tool_return<void> CloseResFile(uint16_t refNum);
|
2016-08-02 19:29:04 +00:00
|
|
|
|
|
|
|
tool_return<void> CreateResFile(const std::string &path, uint32_t creator = 0, uint32_t fileType = 0);
|
|
|
|
|
2013-03-27 03:54:08 +00:00
|
|
|
}
|
|
|
|
|
2013-02-26 23:33:21 +00:00
|
|
|
uint16_t CloseResFile(uint16_t trap);
|
2013-02-19 23:28:58 +00:00
|
|
|
uint16_t GetNamedResource(uint16_t trap);
|
2013-02-08 03:12:30 +00:00
|
|
|
uint16_t Get1NamedResource(uint16_t trap);
|
2015-02-18 14:32:01 +00:00
|
|
|
|
2013-02-14 04:07:33 +00:00
|
|
|
uint16_t GetResource(uint16_t trap);
|
2013-02-19 23:28:58 +00:00
|
|
|
uint16_t Get1Resource(uint16_t trap);
|
2013-06-28 00:27:55 +00:00
|
|
|
uint16_t Get1IndResource(uint16_t trap);
|
2013-02-16 01:42:20 +00:00
|
|
|
|
2013-02-19 23:28:58 +00:00
|
|
|
uint16_t ReleaseResource(uint16_t trap);
|
2013-02-26 23:33:21 +00:00
|
|
|
uint16_t ResError(uint16_t trap);
|
|
|
|
|
|
|
|
uint16_t OpenResFile(uint16_t trap);
|
2013-06-24 02:05:57 +00:00
|
|
|
uint16_t OpenRFPerm(uint16_t trap);
|
2014-12-16 18:07:51 +00:00
|
|
|
uint16_t HOpenResFile(uint16_t trap);
|
2013-02-26 23:33:21 +00:00
|
|
|
|
|
|
|
uint16_t SetResLoad(uint16_t trap);
|
2013-03-03 01:53:54 +00:00
|
|
|
|
|
|
|
uint16_t CurResFile(uint16_t trap);
|
2013-03-04 02:55:33 +00:00
|
|
|
uint16_t UseResFile(uint16_t trap);
|
2013-06-24 00:42:16 +00:00
|
|
|
|
|
|
|
uint16_t CreateResFile(uint16_t trap);
|
2015-01-17 23:33:34 +00:00
|
|
|
uint16_t HCreateResFile(uint16_t trap);
|
2013-06-25 02:53:17 +00:00
|
|
|
|
|
|
|
uint16_t Count1Resources(uint16_t trap);
|
|
|
|
uint16_t UpdateResFile(uint16_t trap);
|
|
|
|
uint16_t GetResFileAttrs(uint16_t trap);
|
|
|
|
uint16_t SetResFileAttrs(uint16_t trap);
|
2013-06-28 00:27:55 +00:00
|
|
|
|
2013-06-27 03:24:20 +00:00
|
|
|
uint16_t AddResource(uint16_t trap);
|
2013-06-28 00:27:55 +00:00
|
|
|
uint16_t GetResAttrs(uint16_t trap);
|
2013-06-27 03:24:20 +00:00
|
|
|
uint16_t SetResAttrs(uint16_t trap);
|
|
|
|
uint16_t WriteResource(uint16_t trap);
|
|
|
|
uint16_t DetachResource(uint16_t trap);
|
2015-02-07 17:30:30 +00:00
|
|
|
uint16_t ChangedResource(uint16_t trap);
|
2013-06-28 00:27:55 +00:00
|
|
|
uint16_t RemoveResource(uint16_t trap);
|
|
|
|
|
2013-06-30 17:08:26 +00:00
|
|
|
uint16_t GetResourceSizeOnDisk(uint16_t trap);
|
2013-08-03 23:19:44 +00:00
|
|
|
|
|
|
|
uint16_t GetResInfo(uint16_t trap);
|
|
|
|
uint16_t LoadResource(uint16_t trap);
|
2013-08-18 04:51:31 +00:00
|
|
|
|
|
|
|
uint16_t HomeResFile(uint16_t trap);
|
2013-08-18 05:10:14 +00:00
|
|
|
uint16_t Count1Types(uint16_t trap);
|
|
|
|
uint16_t Get1IndType(uint16_t trap);
|
2013-08-18 04:51:31 +00:00
|
|
|
|
2014-12-16 18:07:51 +00:00
|
|
|
|
2014-12-20 17:20:34 +00:00
|
|
|
uint16_t FSpOpenResFile(void);
|
2014-12-22 03:30:04 +00:00
|
|
|
uint16_t FSpCreateResFile(void);
|
2014-12-20 17:20:34 +00:00
|
|
|
|
2013-02-07 04:44:12 +00:00
|
|
|
}
|
|
|
|
|
2013-02-16 01:42:20 +00:00
|
|
|
|
2015-02-18 14:32:01 +00:00
|
|
|
#endif
|