/* This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifndef ABIWRAPPER_H #define ABIWRAPPER_H #include #include #include #include #include typedef struct _AbiWrapper AbiWrapper; struct _AbiWrapper { NPClass *_class; uint32_t referenceCount; AbiWidget *widget; GdkNativeWindow xid; GdkWindow *parentWindow; GtkWidget *plug; NPP instance; }; void abp_log(char *msg); AbiWrapper *abi_wrapper_new(NPP instance); void abi_wrapper_set_param(AbiWrapper *self, const gchar *name, const gchar *value); void abi_wrapper_resize(AbiWrapper *self); void abi_wrapper_set_window(AbiWrapper *self, GdkNativeWindow xid); /* bool abi_wrapper_has_method(AbiWrapper *self, char *name); bool abi_wrapper_has_property(AbiWrapper *self, char *name); GValue * abi_wrapper_get_property(AbiWrapper *self, char *name); */ void abi_wrapper_free(AbiWrapper *AbiWrapper); #endif