www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2015/03/25/16:23:39

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-SourceIP: 85.216.233.42
X-Clacks-Overhead: "GNU Terry Pratchett"
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=prochac.sk;
s=default; t=1427314914;
bh=nPYYOv+HPYVsjIPtX+VJaZDlhZb5XwL9YSZe3EpdDB0=;
h=Date:From:To:Subject:References:In-Reply-To;
b=fJEMXkcsUW7g7q95zEB7lO4WfRQWaawG+/32IkOTOeIbtch6iEmKa04Ky9u4G8Zfy
KoHORYnF5w/GWw4zH+bKUXwcgUwYCiFNefZnKca9fzlcd5G0bN1+yQfWGX/4Zshzny
iIYI1YxGjJBCOyZwcyGEYc5TNHQ5zZQjbRs3D3JM=
Message-ID: <551318AC.1020205@prochac.sk>
Date: Wed, 25 Mar 2015 21:21:00 +0100
From: Milan Prochac <milan AT prochac DOT sk>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] Export filters
References: <CAGYR9vcjq9DRWkZ2xJDUmUhUeUyvy4OfTsiYeeYtaLMiEqiHbw AT mail DOT gmail DOT com> <201503251815 DOT t2PIF0i0015341 AT envy DOT delorie DOT com>
In-Reply-To: <201503251815.t2PIF0i0015341@envy.delorie.com>
X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=ham
version=3.3.2
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on samuel.doma.local
Reply-To: geda-user AT delorie DOT com

On 25. 3. 2015 19:15, DJ Delorie wrote:
>> How are the export filters of PCB currently implemented?
> PCB has a shared library hook for runtime-loadable actions and
> exporters, although the common ones are built into pcb.  If you look
> at one of my plugins you'll see how to add an action at runtime:
>
> http://www.delorie.com/pcb/teardrops/
> more at http://www.delorie.com/pcb/
>
> For exporters, PCB looks for a function called "hid_<filename>_init()"
> (i.e. frob.so -> hid_frob_init()) or, more easily, a function called
> pcb_plugin_init().  This function may call any of the same functions that
> built-in hids call, including hid_register_hid().

Nice.  It took 5 minutes to rebuild my OpenSCAD filter as plugin module 
(without changing single line in my sources) and it seems it works...

Is this possibility documented somewhere? I knew about plugins, but I 
did not know it works for exporters too...

Just curious why nobody mentioned this possibility before... it would 
simplify lot of things.

Milan

- Raw text -


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