File: OperationCode.cpp

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 (15 lines) | stat: -rw-r--r-- 344 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <mtp/ptp/OperationCode.h>
#include <mtp/log.h>

namespace mtp
{
	std::string ToString(OperationCode property)
	{
		switch(property)
		{
#			define ENUM_VALUE(NAME, VALUE) ENUM_VALUE_TO_STRING(OperationCode, NAME, VALUE)
#			include <mtp/ptp/OperationCode.values.h>
			ENUM_VALUE_TO_STRING_DEFAULT(OperationCode, property, 4);
		}
	}
}