delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2012/11/15/14:58:51

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Mailer: exmh version 2.7.2 01/07/2005 (debian 1:2.7.2-18) with nmh-1.3
X-Exmh-Isig-CompType: repl
X-Exmh-Isig-Folder: inbox
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] libgeda documentation
In-reply-to: <50A3FD26.5000305@sbcglobal.net>
References: <20121113195022 DOT 2B2CF813A49B AT turkos DOT aspodata DOT se> <50A2E0FC DOT 5050108 AT sbcglobal DOT net> <20121114090659 DOT BF2CF813A49D AT turkos DOT aspodata DOT se> <50A3FD26 DOT 5000305 AT sbcglobal DOT net>
Comments: In-reply-to "Girvin R. Herr" <girvin DOT herr AT sbcglobal DOT net>
message dated "Wed, 14 Nov 2012 12:20:54 -0800."
Mime-Version: 1.0
Message-Id: <20121115195816.29A428117B46@turkos.aspodata.se>
Date: Thu, 15 Nov 2012 20:58:16 +0100 (CET)
From: karl AT aspodata DOT se (Karl Hammar)
X-Virus-Scanned: ClamAV using ClamSMTP
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Girvin Herr:
> Karl Hammar wrote:
...
> > If you downloaded the source and built the suite, you can look into
> >
> >  <geda-gaf source dir>/libgeda/docs/html/index.html
> >
> > you'll find what you are asking for. It is incomplete but it is there.
> >
> > If you click on "File list" in the left frame and then on "a_basic.c",
> > and then on "o_save", you'll find:
> >
> > ====
> > int o_save 	( 	TOPLEVEL *  	toplevel,
> > 		GList *  	object_list,
> > 		char *  	filename	 
> > 	) 			
> >
> > Function Description
> >     This function saves the data in a libgeda format to a file 
> >
> > Parameters:
> >     [in] 	toplevel 	The current TOPLEVEL.
> >     [in] 	object_list 	The head of a GList of OBJECTs to save.
> >     [in] 	filename 	The filename to save the data to.
> >
> > Returns:
> >     1 on success, 0 on failure.
> > ====
...
> Yes, that looks like what I need.
> I checked my source path as you described and I do not have an html 
> subdirectory. I am running geda/gaf 1.6.2. Here is what I have in source 
> dir>/libgeda/docs/:
> total 108
> drwxr-xr-x 3 gherr users 304 2012-11-14 11:56 .
> drwxr-x--- 10 gherr users 248 2012-11-01 14:51 ..
> -rw-r--r-- 1 gherr users 756 2011-01-13 21:07 Makefile.am
> -rw-r--r-- 1 gherr users 22120 2011-01-14 19:41 Makefile.in
> drwxr-xr-x 2 gherr users 392 2011-01-14 20:30 images
> -rw-r--r-- 1 gherr users 254 2009-10-04 13:38 libgeda-main.txt
> -rw-r--r-- 1 gherr users 51199 2009-10-04 13:38 libgeda.dox
> -rw-r--r-- 1 gherr users 15870 2009-10-04 13:38 logo.png
> -rw-r--r-- 1 gherr users 876 2009-10-04 13:38 what-is-geda.html
> -rw-r--r-- 1 gherr users 128 2009-10-04 13:38 what-is-libgeda.html
> 
> The two html files listed are no help in my case. Maybe the html files 
> you suggested were added in newer releases. I will try downloading the 
> latest version and see if the html files are in it.

You probably missed the "build" step I mentioned above.
To build, look for instructions in the README file (in geda top dir),
under (if you downloaded the .tar.gz file)

 Installation from a source archive

or (if you did "git clone")

 Installation from the git repository

But I see now that --enable-doxygen is not documented there,
you have to run ./configure with the --enable-doxygen option.
Please rerun the configure, and then run "make doxygen".

> As for whether this should be available to regular users in the 
> documentation, maybe not. I need it to understand the interfaces that 
> gsymcheck uses to libgeda, but regular users should not need this level 
> of information. However, maybe it should be (continue to be) included 
> with the source. If Schema routines are geda-specific and not available 
> elsewhere, then they should probably be included also. I don't think it 
> is in the scope of geda to teach schema, but that is only my opinion. If 
> geda is truly open source, then I think everything unique that is needed 
> to understand and work with the code should be included. This is all 
> valuable information.

Agreed.

> There was a thread lately about someone who left 
> the project and didn't leave much information for someone else to take 
> over. That is not nice. As a retired engineer and C programmer, I 
> preferred to include all my notes and documentation with my code. I also 
> commented my code profusely, especially when I did something out of the 
> ordinary or not intuitive. That not only helped me when I came back to 
> the code years later to make a modification or fix a bug, but it helped 
> my successor take over, letting me go on to other new challenges.
> Thanks for your help. I may need to contact you again, if I can't find 
> these html files.

You're welcome.

Regards,
/Karl Hammar

-----------------------------------------------------------------------
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019