[maemo-developers] [pymaemo] How to add PyModule_AddObject to the override file?

From: Andrea Grandi a.grandi at gmail.com
Date: Wed Jul 29 16:04:26 EEST 2009
Hi,

2009/7/29 Anderson Lizardo <anderson.lizardo at openbossa.org>:
> When using codegen, you will almost create new types by yourself. You
> need to either (a) fix codegen to parse correctly some missing type
> that was in a public header or (b) write custom defs entries in
> mafw-extras.defs.

I'll try to use option (b) of course, but.... I cannot find any
existing example in defs/ folder about structure: I can find
define-function, define-method, define-object but not "define-struct".

Do you know where I can find an existing structure defined? So I can
take it as example...

> You can always use existing defs entries as reference for writing your
> own entries. Just remember to put then in mafw-extras.defs , because
> any other .defs are overwritten when running mafw_gen_defs.sh to
> update the autogenerated defs.

ok

> As I said above, for type definitions codegen should be used. For
> other custom things that need to go in the init function, you need to
> edit mafwmodule.c (it is manually written).

ok, this is also the case of my new structure or do you mean other
type of customizations?

Thanks for your help,

-- 
Andrea Grandi
email: a.grandi [AT] gmail [DOT] com
website: http://www.andreagrandi.it
PGP Key: http://www.andreagrandi.it/pgp_key.asc
More information about the maemo-developers mailing list