Index: [thread] [date] [subject] [author]
  From: Steve Cheng <elmert@ipoline.com>
  To  : ggi-develop@eskimo.com
  Date: Fri, 7 Aug 1998 17:48:25 -0400 (EDT)

Re: setinfoflags and mansync changes

On Fri, 7 Aug 1998, Marcus Sundberg wrote:

> Steve Cheng wrote:
> > Okay, I've done the helper-mansync library work, but how would a visual load
> > it?  I tried:
> > 
> > _ggiAddDL(vis, "helper-mansync", "", 0);
> > 
> > which succeeds.  In GGIdlinit() of the mansync-using visual, but whenever I
> > call a help-mansync-exported function it bombs with a not very helpful
> > message:
> > 
> > "error in loading shared libraries"
> > 
> > I also tried _ggiOpenDL (which is GGI_DLTYPE_INTERNAL) and tried to return
> > GGI_OP_DISPLAY, but it still doesn't work.
> > 
> > I'm obviously a beginner at these things. Any ideas?
> 
> Don't have any idea about what  goes wrong here. If you post a
> diff I'll have a look at it.

X/visual.c, trying to load helper-mansync:  (with some annotations)
===================================================================

--- visual.c.orig	Thu Aug  6 14:45:31 1998
+++ visual.c	Thu Aug  6 16:20:05 1998
@@ -28,7 +28,7 @@
 #include "ggi-dl.h"
 #include "Xvisual.h"
 
-#include "../common/mansync.inc"	/* FIXME: we include all the mansync stuff twice */
+#include "../mansync/mansync.h"
 
 /* 
  * We are guaranteed to have been checked already...
@@ -57,7 +57,6 @@
 	xinfo->XLibLock=0;
 	xinfo->viswidth=0;
 	xinfo->visheight=0;
-	xinfo->isasync=1;  /* Yes, this SHOULD be initialized to 1. */
 	xinfo->relptr=0;
 	xinfo->relptr_keymask = RELPTR_KEYINUSE;
 	xinfo->colormap=NULL;
@@ -85,9 +84,9 @@
 	DPRINT("X-lib has screen.\n");
 	DPRINT("X-lib fully up.\n");
 
-#ifdef MANSYNC_CHILD
-	MANSYNC_CHILD_INIT(vis);
-#endif
+	if(!_ggiAddDL(vis,"helper-mansync","",0))	/* succeeds */
+		ggiPanic("cannot open helper-mansync!!!\n");
+	_GGI_mansync_init(vis);		/* bombs here -- "cannot load shared libs" */
 	
 	if (GGI_VERSION_FUNCS(vis->opdisplay->version) >= 10) {
 		/* Has mode management */
@@ -112,8 +111,7 @@
 {
 	struct Xhooks *xinfo;
 
-	/* prevents a soon-to-be unloaded function from being called */
-	ggiSetFlags(vis, GGIFLAG_ASYNC);
+	_GGI_mansync_deinit(vis);
 
 	/* FIXME !!! */
 	if ((xinfo=LIBGGI_PRIVATE(vis)) != NULL) {
@@ -135,10 +133,6 @@
 			XDestroyWindow(xinfo->display,xinfo->window);
 		if (xinfo->display)
 			XCloseDisplay(xinfo->display);
-
-#ifdef MANSYNC_CHILD
-		MANSYNC_CHILD_DEINIT(vis);
-#endif
 
 		free(xinfo);
 	}


===================================================================

mansync is attached as a separate tar.gz.

Very frustrating because the error message doesn't tell you anything...

--
Steve Cheng               

email: steve@ggi-project.org   
www: <http://shell.ipoline.com/~elmert/>;

vxö!3ke'Ä3==#
&p://she)mWöv#j{;ß1T٭շwjx\$*(Mp://she)GAȯqw=HüyÖlj{J.>p://she)mCßü;탣ΫkDS5]Vfp://she)T,
r"
|zrҼ_~>jÃbko'{Blwep://she)>#f(<y}ÖywvFރsf(!3}N;ä>p://she)8Ö
^T/%f6"s}a}'
< ̴^ß7GÜp://she)	ف7b0qPbü ?Jük0cß[ap://she)eL?5}+
X'rבüdy>!Ep/>,
v&^Äp://she),ŮlE!N<U?ϰ W\
?J|rvZzrp://she)\zhzKXÜ
836,&r1ѴcH13.\.p://she)$W6̐v3oLH@ /WIet6-1ö5Bp://she)F8q9eBmügF8p)D&:p://she)'M7rpz>x)V?nvώ:v|f
vhwp://she)F]\/;G:\VLcteRf<4lhBp://she)|nqq
MfA)HǃҦ1iÖ}&2t()Yp://she)vYAא9iU?eQ)nlػddp://she)̊|mᐴiÄ![	JD=8mI_i_2Z`p://she)0A(e:@1IKΤϢi5$BßHZL[{p://she)9XP YZkH1p://she)ڥ:i[Žǻ#"	IA`KWJ"4MöS|p://she)öq7tÄ|K=Qo.q 0tx _+7NÖ-(Ybp://she)WE"0#bVIB6Pz©
b\:p://she)D{Üjt0<_ßRenÜ)ۺ|4ö`5liKe&p://she);IX򨂴+ÄDU>ThNDHyß%"<>M4/p://she))smäIJ4()wbtcj|J.`Dp://she)Ɂ\'۬i" Lؾ]`C@,wh0To~> tӋvn]"o2p://she)B& 2 !KoC*!o1©XƐ!,#p://she)>M6p]C̞\@DJ(e>95N~W}p://she)E1zyC71J
gd!hÖQ}ާiYS=[Zp://she)epZ:疤<]ß>b~ß[O0H'O(p://she)ಝIqiÜEPp^E#iA)LioyUr'Vp://she)üsʛ
)?qiÄÄ/0f]IY,0Djp://she)p=$tÝUä7;2蕾`lD%2_?7G!p://she)?©©cһP0Y<Tkg:_p://she))(%,kIh^*Sp}c!ERqS@p://she)A07$Ȟ>e
=%%äsz&p__gG/cp://she)XPSK<9ərkwtL[wvBϹyp://she)舃ür@Eb԰	D$p_? kp://she)v\m>٭/\¹@N^!+DyVfäFp://she)̧/M2üiȅTYeIuc"rƧ)]ä*Ep://she)üXeR.z]Xep̨([*)o\)cPp://she)yv"N9qB(6a<#HcƘT1Pp://she)R©1%ÄF@3
=@$öXӅ
>ŋp://she)©f
I^bBJBgL3x*b'41xzLDp://she)ۂVkб0h
u_äWX*©3UV )p://she)2JlÄ=bcZZ%JϯjDs.qb.[rUGp://she)/o)sU),&2(KEJe+9e"5UZGAZäZ"
+@
T^0왚SHKFꉿßJp://she)%@IRAö.uSbb!r$exsaJIVEp://she)]y>6uhFt;I?PUiR©PHp://she)M
ISd*N"[rb"QR+[TТj"EzeHIp://she)Eß
RD`kF
@`™QbARCFUp://she)ͻ?X\üӶY{!)o>TѾ[c}öÜ~DZ[p://she)̌P]Ӽ'©(geJ$©<3T>B1z_Kß3(p://she))ÜTYE-Q(Ü'Ÿi~({D©v_fp://she)fEt|pyv0©B4uưtgägc+Üp://she)whaj=0&(.r-ÜX>"T`v:㢰RTȊRp://she)
üSu2Ä*>EVr)v>h?LiF"p://she)Km5<z1'f<7~P)pY+Ä<röz?5$V/[VQßi(œ7gV-;A08(:{LYp://she)Og(m$^`+f;o o%f2w<(Dp://she)ÜuHYC5e	"ü9Ɍ)%IPuD٬dKÖp://she)v	Ä%KCSci I␌SqhSk)QG0#>Ɠp://she)ZYG(ca̘_JzZILL^ ]Q1+VYp://she)
)ÄgɈr_-B\s{7Üݫ?p://she)%oRb
@~ße.eMÄSuR&ua$ԶG
SVß1uTtbp://she)pK9<'㝤7.KfdY	ʤWDÜwp://she)ZW!S<^TL]Hb,üt\RRWQ[Ccp://she)>'VkZ{![DGSꆄtgU(S)
K̇ß=p://she)%wu;FÜGTJHtuh\ڐ;dGȿ/p://she)~[0n1lxßx0GΏKBÜ[>WWL(p://she))]K$sRÖ]:?öIp://she)/:?F#ö_IGo0RFp://she)y>RoßO)8uWSϯj:üOp&BDp://she)6}Rꮟg>]𳨬!~nxUW/oWÝI>-p://she)/ DZn
	DüJu|JajVۆ>dfbהgp://she)?C%ÖÖrV4x>yQ[2LÖ~N}p://she).7&SVo$vuyj{Gޑw${GO p://she)^{5v;{u;ß~H:rX,:`ü.p://she)bE˦?ßPö_Iey1juk(r!r!rp://she)!r!r!r!r!r!_K

Index: [thread] [date] [subject] [author]