--- /dev/null
+# This script generates api_id_mapping header from api list
+
+BEGIN {
+ api_id = 1
+ macro_prefix = "API_ID_"
+} {
+ if ( $0 == "" ) {
+ print
+ } else {
+ orig = $0
+ def = orig
+ gsub(/[,:()*&~\[\] ]/, "_", def)
+ def = macro_prefix def
+ printf "#define %-135s %d // %s\n", def, api_id, orig
+ api_id = api_id + 1
+ }
+}
--- /dev/null
+# This script generates api_id_mapping text file from api list
+
+BEGIN {
+ api_id = 1
+} {
+ if ( $0 != "" ) {
+ api_name = $0
+ printf "%d %s\n", api_id, api_name
+ api_id = api_id + 1
+ }
+}