|
1 /* |
|
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 package com.nokia.carbide.remoteconnections.discovery.pccs.pccsnative; |
|
18 |
|
19 import com.sun.jna.NativeLong; |
|
20 import com.sun.jna.Pointer; |
|
21 import com.sun.jna.Structure; |
|
22 import com.sun.jna.TypeMapper; |
|
23 import com.sun.jna.ptr.ShortByReference; |
|
24 |
|
25 /** |
|
26 * This file was originally autogenerated by <a href="http://jnaerator.googlecode.com/">JNAerator</a>,<br> |
|
27 * but modified to work with Carbide. |
|
28 */ |
|
29 public class CONAPI_MEDIA_INFO extends Structure { |
|
30 /// Must be sizeof(CONAPI_MEDIA_INFO) |
|
31 public int dwSize; |
|
32 /** |
|
33 * Media ID<br> |
|
34 * C type : GUID |
|
35 */ |
|
36 public GUID gMediaID; |
|
37 /// Detailed media type |
|
38 public int dwMediaType; |
|
39 /// Media state. Use media state macros to get states! |
|
40 public int dwMediaState; |
|
41 /** |
|
42 * Media name<br> |
|
43 * C type : WCHAR* |
|
44 */ |
|
45 public ShortByReference pstrName; |
|
46 /** |
|
47 * Version (driver, stack, etc.), can be NULL<br> |
|
48 * C type : WCHAR* |
|
49 */ |
|
50 public ShortByReference pstrVersion; |
|
51 /** |
|
52 * Local address if supported, can be NULL<br> |
|
53 * C type : WCHAR* |
|
54 */ |
|
55 public ShortByReference pstrAddress; |
|
56 /** |
|
57 * Local HW name if supported, can be NULL<br> |
|
58 * C type : WCHAR* |
|
59 */ |
|
60 public ShortByReference pstrHWName; |
|
61 /// For future use |
|
62 public int dwCapabilities; |
|
63 public CONAPI_MEDIA_INFO() { |
|
64 super(); |
|
65 } |
|
66 /** |
|
67 * @param dwSize Must be sizeof(CONAPI_MEDIA_INFO)<br> |
|
68 * @param gMediaID Media ID<br> |
|
69 * C type : GUID<br> |
|
70 * @param dwMediaType Detailed media type<br> |
|
71 * @param dwMediaState Media state. Use media state macros to get states!<br> |
|
72 * @param pstrName Media name<br> |
|
73 * C type : WCHAR*<br> |
|
74 * @param pstrVersion Version (driver, stack, etc.), can be NULL<br> |
|
75 * C type : WCHAR*<br> |
|
76 * @param pstrAddress Local address if supported, can be NULL<br> |
|
77 * C type : WCHAR*<br> |
|
78 * @param pstrHWName Local HW name if supported, can be NULL<br> |
|
79 * C type : WCHAR*<br> |
|
80 * @param dwCapabilities For future use |
|
81 */ |
|
82 public CONAPI_MEDIA_INFO(int dwSize, GUID gMediaID, int dwMediaType, int dwMediaState, ShortByReference pstrName, ShortByReference pstrVersion, ShortByReference pstrAddress, ShortByReference pstrHWName, int dwCapabilities) { |
|
83 super(); |
|
84 this.dwSize = dwSize; |
|
85 this.gMediaID = gMediaID; |
|
86 this.dwMediaType = dwMediaType; |
|
87 this.dwMediaState = dwMediaState; |
|
88 this.pstrName = pstrName; |
|
89 this.pstrVersion = pstrVersion; |
|
90 this.pstrAddress = pstrAddress; |
|
91 this.pstrHWName = pstrHWName; |
|
92 this.dwCapabilities = dwCapabilities; |
|
93 } |
|
94 protected ByReference newByReference() { return new ByReference(); } |
|
95 protected ByValue newByValue() { return new ByValue(); } |
|
96 protected CONAPI_MEDIA_INFO newInstance() { return new CONAPI_MEDIA_INFO(); } |
|
97 public static CONAPI_MEDIA_INFO[] newArray(int arrayLength) { |
|
98 return null; |
|
99 // return com.ochafik.lang.jnaerator.runtime.Structure.newArray(CONAPI_MEDIA_INFO.class, arrayLength); |
|
100 } |
|
101 public static class ByReference extends CONAPI_MEDIA_INFO implements com.sun.jna.Structure.ByReference {} |
|
102 public static class ByValue extends CONAPI_MEDIA_INFO implements com.sun.jna.Structure.ByValue {} |
|
103 } |