Switched from (now obsolete) 'process_load' to 'autostart_processes'.

This commit is contained in:
oliverschmidt 2008-02-07 15:53:43 +00:00
parent 58d047667d
commit 155a27ff59
4 changed files with 12 additions and 12 deletions

View File

@ -28,7 +28,7 @@
* *
* This file is part of the Contiki operating system. * This file is part of the Contiki operating system.
* *
* @(#)$Id: dlloader.c,v 1.1 2006/06/17 22:41:18 adamdunkels Exp $ * @(#)$Id: dlloader.c,v 1.2 2008/02/07 15:53:43 oliverschmidt Exp $
*/ */
#include <dlfcn.h> #include <dlfcn.h>
#include <stddef.h> #include <stddef.h>
@ -53,10 +53,10 @@ dlloader_load(char *path, char *arg)
return LOADER_ERR_FMT; return LOADER_ERR_FMT;
} }
/* Find the main process of the loaded program. */ /* Find the processes to be started from the loaded program. */
p = dlsym(handle, "process_load"); p = dlsym(handle, "autostart_processes");
if(p == NULL) { if(p == NULL) {
printf("dlloader_load: could not find process startpoint 'process_load'\n"); printf("dlloader_load: could not find symbol 'autostart_processes'\n");
return LOADER_ERR_FMT; return LOADER_ERR_FMT;
} }

View File

@ -28,7 +28,7 @@
* *
* This file is part of the Contiki operating system. * This file is part of the Contiki operating system.
* *
* @(#)$Id: elfloader_compat.c,v 1.6 2007/06/04 17:51:41 bg- Exp $ * @(#)$Id: elfloader_compat.c,v 1.7 2008/02/07 15:53:43 oliverschmidt Exp $
*/ */
/* /*
@ -165,7 +165,7 @@ elfloader_load(off_t eepromaddr)
/* Find _init, _fini, and loaded_process. */ /* Find _init, _fini, and loaded_process. */
elfloader_loaded_process = cle_lookup(&h, xmem_pread, eepromaddr, elfloader_loaded_process = cle_lookup(&h, xmem_pread, eepromaddr,
"process_load"); "autostart_processes");
elfloader_fini = cle_lookup(&h, xmem_pread, eepromaddr, "_fini"); elfloader_fini = cle_lookup(&h, xmem_pread, eepromaddr, "_fini");
elfloader_init = cle_lookup(&h, xmem_pread, eepromaddr, "_init"); elfloader_init = cle_lookup(&h, xmem_pread, eepromaddr, "_init");

View File

@ -30,7 +30,7 @@
* *
* Author: Oliver Schmidt <ol.sc@web.de> * Author: Oliver Schmidt <ol.sc@web.de>
* *
* $Id: dll-loader.c,v 1.3 2007/11/18 13:24:34 oliverschmidt Exp $ * $Id: dll-loader.c,v 1.4 2008/02/07 15:54:50 oliverschmidt Exp $
*/ */
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN
@ -54,10 +54,10 @@ dll_loader_load(char *name, char *arg)
return LOADER_ERR_OPEN; return LOADER_ERR_OPEN;
} }
/* Find the main process of the loaded program. */ /* Find the processes to be started from the loaded program. */
p = GetProcAddress(handle, "process_load"); p = GetProcAddress(handle, "autostart_processes");
if(p == NULL) { if(p == NULL) {
debug_printf("dll_loader_load: could not find process startpoint 'process_load'\n"); debug_printf("dll_loader_load: could not find symbol 'autostart_processes'\n");
return LOADER_ERR_READ; return LOADER_ERR_READ;
} }

View File

@ -30,13 +30,13 @@
* *
* Author: Oliver Schmidt <ol.sc@web.de> * Author: Oliver Schmidt <ol.sc@web.de>
* *
* $Id: dll-loader.h,v 1.3 2006/08/15 14:50:13 oliverschmidt Exp $ * $Id: dll-loader.h,v 1.4 2008/02/07 15:54:50 oliverschmidt Exp $
*/ */
#ifndef __DLL_LOADER_H__ #ifndef __DLL_LOADER_H__
#define __DLL_LOADER_H__ #define __DLL_LOADER_H__
#define LOADER_LOAD(name, arg) dll_loader_load(name, arg); #define LOADER_LOAD(name, arg) dll_loader_load(name, arg);
#define LOADER_UNLOAD() dll_loader_unload((void *)process_load) #define LOADER_UNLOAD() dll_loader_unload((void *)autostart_processes)
#define LOADER_LOAD_DSC(name) dll_loader_load_dsc(name) #define LOADER_LOAD_DSC(name) dll_loader_load_dsc(name)
#define LOADER_UNLOAD_DSC(dsc) dll_loader_unload_dsc(dsc) #define LOADER_UNLOAD_DSC(dsc) dll_loader_unload_dsc(dsc)