scsh-users
[Top] [All Lists]

Re: Interfacing scsh with C

To: Rob Morelli <morelli@cs.utah.edu>
Subject: Re: Interfacing scsh with C
From: Martin Gasbichler <gasbichl@informatik.uni-tuebingen.de>
Date: Mon, 24 Jun 2002 11:26:32 +0200
Cc: scsh-news@zurich.ai.mit.edu
Sender: gasbichl@informatik.uni-tuebingen.de
>>>>> "Rob" == Rob Morelli <morelli@cs.utah.edu> writes:

Rob> I'm thinking of doing the following mix of
Rob> C and schs:
Rob> 1.  Create a module in scsh exporting a single
Rob> function myfun
Rob> 2.  Write a gui in C/gtk that just
Rob> collects the arguments to myfun using a bunch
Rob> of widgets.
Rob> 3.  Interface the C code with scsh so that
Rob> when the user presses a button myfun gets
Rob> called with the arguments the gui has
Rob> collected.

Rob> Is this feasible?  Are there any code examples like
Rob> this available on the net?

I think it's feasible if you start the gtk event loop from a C function
called by scsh.

-- 
Martin

<Prev in Thread] Current Thread [Next in Thread>