From: Marco Gerards <mgerards@xs4all.nl>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [rfc] User definable terminfo support
Date: Tue, 03 Jan 2006 23:59:17 +0100 [thread overview]
Message-ID: <87ek3ogbp6.fsf@xs4all.nl> (raw)
In-Reply-To: <43BAF893.5080205@omniflux.com> (omniflux+lists@omniflux.com's message of "Tue, 03 Jan 2006 15:20:03 -0700")
Omniflux <omniflux+lists@omniflux.com> writes:
> This code is incomplete, but I want to get some feedback from you,
> Marco, to ensure I am going down the correct path.
>
> Is there a reason there is not a way to unregister an env. variable
> hook, or is it just not yet coded?
You could write to null pointers. The last hooks passed to the
grub_register_variable_hook function are the once used.
> Should there be code in the grub_register_variable_hook function to
> prevent overwriting an existing hook or should there be support for
> multiple hooks (how would ordering be handled though?)?
You just need one hook, that's for TERM. I think it is safe to assume
that the terminfo stuff is the only user. When registering you should
get the hook, when you unregister you should remove the hook
(otherwise it can point to a non-existing function).
--
Marco
next prev parent reply other threads:[~2006-01-03 23:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-03 22:20 [rfc] User definable terminfo support Omniflux
2006-01-03 22:59 ` Marco Gerards [this message]
2006-01-03 23:09 ` Marco Gerards
2006-01-03 23:23 ` Omniflux
2006-01-03 23:59 ` Marco Gerards
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ek3ogbp6.fsf@xs4all.nl \
--to=mgerards@xs4all.nl \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.