Displaying 5 results from an estimated 5 matches for "dir_close".
2013 Oct 03
0
Automatic boot menu?
...(L, entry->d_name);
+ return 1;
+ } else {
+ /* no more entries => close directory */
+ closedir (d->dir);
+ d->closed = 1;
+ return 0;
+ }
+}
+
+
+/*
+** Closes directory iterators
+*/
+static int dir_close (lua_State *L) {
+ dir_data *d = (dir_data *)lua_touserdata (L, 1);
+ if (!d->closed && d->dir) {
+ closedir (d->dir);
+ }
+ d->closed = 1;
+ return 0;
+}
+
+
+/*
+** Factory of directory iterators
+*/
+static int dir_iter_factor...
2013 Aug 30
2
Automatic boot menu?
"H. Peter Anvin" <hpa at zytor.com> writes:
> On 08/29/2013 04:14 AM, Ferenc Wagner wrote:
>
>> "H. Peter Anvin" <hpa at zytor.com> writes:
>>
>>> On 08/22/2013 10:20 AM, Ferenc Wagner wrote:
>>>
>>>> Now that Syslinux has ls.c32 and lua.c32, it should be possible to build
>>>> a customizable boot menu in
2009 Jul 24
2
[PATCH server] add collapsable sections to vm form
.../src/public/stylesheets/layout.css
@@ -124,8 +124,14 @@ a { color:#000000; text-decoration: none;}
font-size: 130%;
}
+ /* ----- General Effects ----- */
+.clickable {cursor:pointer;}
+.open {background:url(../images/dir_open.png) left center no-repeat;}
+.closed {background:url(../images/dir_closed.png) left center no-repeat;}
+
+.hidden {display:none;}
/* ----- Right side of Header -------- */
@@ -427,9 +433,10 @@ a { color:#000000; text-decoration: none;}
}
.form_heading {
- font-size:115%; color: #666666;
+ font-size:1.15em;
+ color: #666666;
border-top:#CCCCCC 1px dott...
2009 Jun 19
1
[PATCH server] add collapsable sections to vm form
...href.indexOf('/', 8) - start;
return window.location.href.substr(start, end);
}
+
+// hides the specified section, altering the specified header div with updated title / arrow
+function hide_section_with_header(section, header, title){
+ content = '<img src="/ovirt/images/dir_closed.png" /><div>' + title + '</div>';
+ $(header).html(content);
+ $(section).hide('slow');
+};
+
+// show the specified section, altering the specified header div with updated title / arrow
+function show_section_with_header(section, header, title){
+ con...
2013 Oct 15
23
[PATCH 00/21] Upgrade to Lua 5.2.2, add filesystem module and get_key binding
Hi,
This series targets automatic boot menu generation, but most of it
is the Lua upgrade, because I got tired reading deprecated API docs.
It's mostly a straightforward forward port of the earlier Syslinux
specific changes to Lua 5.1, except that:
* I chose the add a stub getenv() implementation to the COM32 API
instead of #ifdefing out all the references in Lua, and
* I kept oslib