int selectcard(void) { int i; printk(BIOS_DEBUG, "%s", "\r\nCase 9.......\r\n"); // send the length byte and command code through RFID interface transaction1(RFID_ADDR); transaction2(RFID_ADDR); transaction3(RFID_ADDR); return (1); }
void DboInstaller::InsertRows() { Wt::Dbo::Transaction transaction(DboSession); //Authors and Modules InsertAuthorModules(); //Configurations InsertConfigurations(); //Localization InsertLanguages(); //Pages O.LandingHomePage = DboSession.add(new Page(1, O.NavigationModule)); O.LandingHomePage.modify()->Title = "Home"; O.LandingHomePage.modify()->DefaultInternalPath = "home"; O.SitemapPage = DboSession.add(new Page(2, O.NavigationModule)); O.SitemapPage.modify()->Title = "Site map"; O.SitemapPage.modify()->DefaultInternalPath = "sitemap"; //Access Paths //English language O.DefaultLanguageAccessPath = DboSession.add(new AccessPath()); O.DefaultLanguageAccessPath.modify()->HostName = ""; O.DefaultLanguageAccessPath.modify()->InternalPath = "en"; O.DefaultLanguageAccessPath.modify()->LanguagePtr = O.EnglishLanguagePtr; //Mobile version O.MobileVersionAccessPath = DboSession.add(new AccessPath()); O.MobileVersionAccessPath.modify()->HostName = ""; O.MobileVersionAccessPath.modify()->InternalPath = "mobile"; //Home page O.HomePageAccessPath = DboSession.add(new AccessPath()); O.HomePageAccessPath.modify()->HostName = ""; O.HomePageAccessPath.modify()->InternalPath = "home"; O.HomePageAccessPath.modify()->PagePtr = O.LandingHomePage; //Sitemap page Wt::Dbo::ptr<AccessPath> SitemapPageAccessPath = DboSession.add(new AccessPath()); SitemapPageAccessPath.modify()->HostName = ""; SitemapPageAccessPath.modify()->InternalPath = "sitemap"; SitemapPageAccessPath.modify()->PagePtr = O.SitemapPage; //Default style O.DefaultStyle = DboSession.add(new Style("Default", O.SaifAuthor)); O.DefaultStyle.modify()->Description = "Default style"; O.DefaultStyle.modify()->CompatibilityVersionSeries = 1; O.DefaultStyle.modify()->CompatibilityVersionMajor = 0; transaction.commit(); //Set IDs after they have been assigned in the database Wt::Dbo::Transaction transaction2(DboSession); O.DefaultAccessPathVal.modify()->Value = O.DefaultLanguageAccessPath.id(); O.HomePageAccessPathIdVal.modify()->Value = O.HomePageAccessPath.id(); O.MobileAccessPathIdVal.modify()->Value = O.MobileVersionAccessPath.id(); O.DefaultStyleNameVal.modify()->Value = O.DefaultStyle.id().Name; O.DefaultStyleNameVal.modify()->DefaultValue = O.DefaultStyle.id().Name; O.DefaultStyleAuthorVal.modify()->Value = O.DefaultStyle.id().AuthorPtr.id(); O.DefaultStyleAuthorVal.modify()->DefaultValue = O.DefaultStyle.id().AuthorPtr.id(); transaction2.commit(); }