octal-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: release? plus other stuff


From: David O'Toole
Subject: Re: release? plus other stuff
Date: Tue Nov 28 19:03:02 2000
User-agent: Mozilla/5.0 (X11; U; Linux 2.4.0-test7 i586; en-US; m18) Gecko/20001010



that sounds great! nice to hear your login troubles are gone...

It's pretty weird now, but seemingly stable... for the alpha ftp, I use SSH and SCP, while for the web pages I need to use Kerberos and krcp. :-/

sure... makes it easier to build a table of machine infos.

Yeah. All you have to do is call mc_load_type() for each shared object in the machines dir. That does the following

/* accepts a string filename, fills in the structure pointed to by t
 returns 0 on failure, otherwise returns value returned by machine's
 init() */

int mc_load_type(machine_type *t, const char *fn)
{
 int ret;

 t->so_handle = dlopen(fn, RTLD_NOW);
 if (!t->so_handle) {
  fprintf(stderr, "%%OCTAL: %s: dlopen() returned NULL.\n", fn);
  return(0);
 }

 t->ox_init    = dlsym(t->so_handle, "ox_init");
 t->ox_create  = dlsym(t->so_handle, "ox_create");
 t->ox_destroy = dlsym(t->so_handle, "ox_destroy");
 t->ox_update  = dlsym(t->so_handle, "ox_update");
 t->ox_work    = dlsym(t->so_handle, "ox_work");
 t->ox_desc    = dlsym(t->so_handle, "ox_desc");
 t->ox_track   = dlsym(t->so_handle, "ox_track");

 if (!t->ox_init || !t->ox_create || !t->ox_destroy
    || !t->ox_work || !t->ox_desc || !t->ox_update || !t->ox_track) {
  printf("%%OCTAL: %s is not a valid OCTAL machine.\n", fn);
  dlclose(t->so_handle);
  return(0);
 }
 ret = t->ox_init(t);
 return(ret);
}

You can learn more about the shared object functions by typing "man dlopen" on a linux box.

that'd be nice... a GUI with a 50Mb memory footprint... :)
....but breathing fire!

Ha!! I know.. hopefully it would be faster than Mozilla is. Would be cool to do skins, but GTK+ themes are just about as good (even better in GTK2) so I'm not worried about that. Hell, with a theme like AquaGraphite I think the screenshots will blow everyone away.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]