File: DataTypeCode.h

package info (click to toggle)
android-file-transfer 4.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,496 kB
  • sloc: cpp: 12,909; python: 140; lex: 47; xml: 26; sh: 13; makefile: 6
file content (22 lines) | stat: -rw-r--r-- 414 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef AFTL_MTP_PTP_DATATYPECODE_H
#define AFTL_MTP_PTP_DATATYPECODE_H

#include <mtp/types.h>
#include <string>

namespace mtp
{
	enum struct DataTypeCode : u16
	{
#define ENUM_VALUE(NAME, VALUE) ENUM_VALUE_DECL(NAME, VALUE)
#		include <mtp/ptp/DataTypeCode.values.h>
#undef ENUM_VALUE
	};
	DECLARE_ENUM(DataTypeCode, u16);

	bool IsArray(DataTypeCode type);
	std::string ToString(DataTypeCode type);

}

#endif