MsaOwner usable

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1645 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
alfred 2006-09-29 09:06:28 +00:00
parent 1ea5992991
commit 190293ab4e
3 changed files with 9 additions and 19 deletions

View File

@ -53,12 +53,11 @@ public class MigrationTool {
}
new MsaWriter(mi).flush();
/*
mi.addProtocol("protocol", UsageTypes.ALWAYS_CONSUMED);
mi.addGuid("guid", UsageTypes.ALWAYS_CONSUMED);
mi.addLibraryClass("class", UsageTypes.ALWAYS_CONSUMED);
mi.addPpi("ppi", UsageTypes.ALWAYS_CONSUMED);
mi.addProtocol("protocol", UsageTypes.ALWAYS_CONSUMED);
*/
mi.getMsaOwner().flush(MigrationTool.ModuleInfoMap.get(mi) + File.separator + "Migration_" + mi.modulename + File.separator + mi.modulename + ".___");
if (MigrationTool.doCritic) {

View File

@ -60,7 +60,6 @@ public final class ModuleInfo {
public final boolean addProtocol (String proname, UsageTypes.Enum usage) {
//protocols.add(proname);
System.out.println("I'm in");
return msaowner.addProtocol(proname, usage);
}

View File

@ -58,11 +58,9 @@ public class MsaOwner {
}
LibraryClassDocument.LibraryClass classname;
List<UsageTypes.Enum> arch = new ArrayList<UsageTypes.Enum>();
classname = libclassdefs.addNewLibraryClass();
classname.setKeyword(name);
arch.add(usage);
classname.setSupArchList(arch);
classname.setUsage(usage);
return true;
}
@ -80,11 +78,9 @@ public class MsaOwner {
}
GuidsDocument.Guids.GuidCNames guid;
List<UsageTypes.Enum> arch = new ArrayList<UsageTypes.Enum>();
guid = guids.addNewGuidCNames();
guid.setGuidCName(guidname);
arch.add(usage);
guid.setSupArchList(arch);
guid.setUsage(usage);
return true;
}
@ -103,11 +99,9 @@ public class MsaOwner {
}
PPIsDocument.PPIs.Ppi ppi;
List<UsageTypes.Enum> arch = new ArrayList<UsageTypes.Enum>();
ppi = ppis.addNewPpi();
ppi.setPpiCName(ppiname);
arch.add(usage);
ppi.setSupArchList(arch);
ppi.setUsage(usage);
return true;
}
@ -150,11 +144,9 @@ public class MsaOwner {
}
ProtocolsDocument.Protocols.Protocol protocol;
List<UsageTypes.Enum> arch = new ArrayList<UsageTypes.Enum>();
protocol = protocols.addNewProtocol();
protocol.setProtocolCName(proname);
arch.add(usage);
protocol.setSupArchList(arch);
protocol.setUsage(usage);
return true;
}