Todd Wang | e5d67b4 | 2014-05-27 10:48:07 -0700 | [diff] [blame] | 1 | // This file was auto-generated by the veyron vdl tool. |
Tilak Sharma | 43395f3 | 2014-05-27 11:33:38 -0700 | [diff] [blame] | 2 | // Source: profile.vdl |
Jiri Simsa | 5293dcb | 2014-05-10 09:56:38 -0700 | [diff] [blame] | 3 | |
| 4 | // Package profile contains implementation and internal interfaces and |
| 5 | // types used by the implementation of Veyron profiles. |
| 6 | package profile |
| 7 | |
Jiri Simsa | 2f8bc27 | 2014-07-16 12:29:15 -0700 | [diff] [blame] | 8 | import ( |
Jiri Simsa | 519c507 | 2014-09-17 21:37:57 -0700 | [diff] [blame] | 9 | "veyron.io/veyron/veyron2/services/mgmt/build" |
Todd Wang | 34ed4c6 | 2014-11-26 15:15:52 -0800 | [diff] [blame] | 10 | |
| 11 | // The non-user imports are prefixed with "__" to prevent collisions. |
| 12 | __vdl "veyron.io/veyron/veyron2/vdl" |
Jiri Simsa | 2f8bc27 | 2014-07-16 12:29:15 -0700 | [diff] [blame] | 13 | ) |
Jiri Simsa | 5293dcb | 2014-05-10 09:56:38 -0700 | [diff] [blame] | 14 | |
| 15 | // Library describes a shared library that applications may use. |
| 16 | type Library struct { |
| 17 | // Name is the name of the library. |
| 18 | Name string |
| 19 | // MajorVersion is the major version of the library. |
| 20 | MajorVersion string |
| 21 | // MinorVersion is the minor version of the library. |
| 22 | MinorVersion string |
| 23 | } |
| 24 | |
Todd Wang | 34ed4c6 | 2014-11-26 15:15:52 -0800 | [diff] [blame] | 25 | func (Library) __VDLReflect(struct { |
| 26 | Name string "veyron.io/veyron/veyron/services/mgmt/profile.Library" |
| 27 | }) { |
| 28 | } |
| 29 | |
Jiri Simsa | 5293dcb | 2014-05-10 09:56:38 -0700 | [diff] [blame] | 30 | // Specification is how we represent a profile internally. It should |
Bogdan Caprita | 2b21936 | 2014-12-09 17:03:33 -0800 | [diff] [blame] | 31 | // provide enough information to allow matching of binaries to devices. |
Jiri Simsa | 5293dcb | 2014-05-10 09:56:38 -0700 | [diff] [blame] | 32 | type Specification struct { |
Jiri Simsa | 2f8bc27 | 2014-07-16 12:29:15 -0700 | [diff] [blame] | 33 | // Arch is the target hardware architecture of the profile. |
| 34 | Arch build.Architecture |
| 35 | // Description is a human-friendly description of the profile. |
Jiri Simsa | 5293dcb | 2014-05-10 09:56:38 -0700 | [diff] [blame] | 36 | Description string |
Jiri Simsa | 2f8bc27 | 2014-07-16 12:29:15 -0700 | [diff] [blame] | 37 | // Format is the file format supported by the profile. |
| 38 | Format build.Format |
| 39 | // Libraries is a set of libraries the profile requires. |
| 40 | Libraries map[Library]struct{} |
| 41 | // Label is a human-friendly concise label for the profile, |
| 42 | // e.g. "linux-media". |
| 43 | Label string |
| 44 | // OS is the target operating system of the profile. |
| 45 | OS build.OperatingSystem |
Jiri Simsa | 5293dcb | 2014-05-10 09:56:38 -0700 | [diff] [blame] | 46 | } |
Todd Wang | 34ed4c6 | 2014-11-26 15:15:52 -0800 | [diff] [blame] | 47 | |
| 48 | func (Specification) __VDLReflect(struct { |
| 49 | Name string "veyron.io/veyron/veyron/services/mgmt/profile.Specification" |
| 50 | }) { |
| 51 | } |
| 52 | |
| 53 | func init() { |
| 54 | __vdl.Register(Library{}) |
| 55 | __vdl.Register(Specification{}) |
| 56 | } |