]> mj.ucw.cz Git - libucw.git/blobdiff - lib/fb-mmap.c
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git
[libucw.git] / lib / fb-mmap.c
index 08a96729044cec03cc2cd97686a19ffeb0e831eb..d7eaa3d0f6b3e33d1470efed659926281484fe2e 100644 (file)
 static uns mmap_window_size = 16*PAGE_SIZE;
 static uns mmap_extend_size = 4*PAGE_SIZE;
 
 static uns mmap_window_size = 16*PAGE_SIZE;
 static uns mmap_extend_size = 4*PAGE_SIZE;
 
-static struct cfitem fbmm_config[] = {
-  { "FBMMap",          CT_SECTION,     NULL },
-  { "WindowSize",      CT_INT,         &mmap_window_size },
-  { "ExtendSize",      CT_INT,         &mmap_extend_size },
-  { NULL,              CT_STOP,        NULL }
+static struct cf_section fbmm_config = {
+  CF_ITEMS {
+    CF_UNS("WindowSize", &mmap_window_size),
+    CF_UNS("ExtendSize", &mmap_extend_size),
+    CF_END
+  }
 };
 
 static void CONSTRUCTOR fbmm_init_config(void)
 {
 };
 
 static void CONSTRUCTOR fbmm_init_config(void)
 {
-  cf_register(fbmm_config);
+  cf_declare_section("FBMMap", &fbmm_config, 0);
 }
 
 struct fb_mmap {
 }
 
 struct fb_mmap {