8 struct speech_priv *priv;
9 struct speech_methods meth;
13 speech_new(const char *type, const char *data)
16 struct speech_priv *(*speech_new)(const char *data, struct speech_methods *meth);
18 dbg(1,"enter type=%s data=%s\n", type, data);
19 speech_new=plugin_get_speech_type(type);
20 dbg(1,"new=%p\n", speech_new);
24 this_=g_new0(struct speech, 1);
25 this_->priv=speech_new(data, &this_->meth);
26 dbg(1, "say=%p\n", this_->meth.say);
27 dbg(1,"priv=%p\n", this_->priv);
32 dbg(1,"return %p\n", this_);
37 speech_say(struct speech *this_, const char *text)
39 dbg(1, "this_=%p text='%s' calling %p\n", this_, text, this_->meth.say);
40 return (this_->meth.say)(this_->priv, text);