Retrieving the datacon of an arbitrary closure
[ghc-hetmet.git] / includes / Linker.h
index bb1a4c2..624d389 100644 (file)
 /* initialize the object linker */
 void initLinker( void );
 
+/* insert a stable symbol in the hash table */
+void insertStableSymbol(char* obj_name, char* key, StgPtr data);
+
+/* insert a symbol in the hash table */
+void insertSymbol(char* obj_name, char* key, void* data);
+
 /* lookup a symbol in the hash table */
 void *lookupSymbol( char *lbl );
 
@@ -27,4 +33,9 @@ HsInt resolveObjs( void );
 /* load a dynamic library */
 char *addDLL( char* dll_name );
 
+/* lookup an address in the datacon tbl */
+char *lookupDataCon( StgWord addr);
+
+extern void markRootPtrTable(void (*)(StgClosure **));
+
 #endif /* LINKER_H */