Re: midish development question(s)

From: Alexandre Ratchov <alex_at_caoua.org>
Date: Mon Jul 09 2007 - 18:16:33 CEST
On Mon, Jul 09, 2007 at 05:30:40PM +0200, Julien Claassen wrote:
> Hi Alexandre!
>   I know made the proclist function, but it returns all procs, builtin and 
> user. Can I somehow achieve it, that I only get user_defined procs, like those 
> in .midishrc?

hi Julien,

yes, once you have a pointer to the proc structure you can check if
it is a builtin or an user-defined as follows:

	if (proc->code->vmt == node_vmt_builtin) {
		/* 
		 * this is a builtin proc
		 */
	} else {
		/* 
		 * vmt = node_vmt_proc, so
		 * this is an user-defined proc
		 */
	}

cheers,

-- Alexandre
Received on Mon, 9 Jul 2007 18:16:33 +0200

This archive was generated by hypermail 2.1.8 : Wed Nov 08 2017 - 16:32:19 CET