#include <X11/xpm.h>
-typedef struct XpmIcon
+struct XpmIcon
{
XpmAttributes attributes;
Pixmap shapemask;
Pixmap image;
-} XpmIcon;
+};
-typedef struct dockapp_t
+struct dockapp_t
{
Display *display;
Window root_win;
Window iconwin;
Window win;
GC NormalGC;
- XpmIcon xpm_icon;
-} dockapp_t;
+ struct XpmIcon xpm_icon;
+};
void
InitDockAppWindow( int argc, char *argv[], char *pixmap_data[],
#define _SCOPE_ extern
#endif
-_SCOPE_ dockapp_t dockapp;
+_SCOPE_ struct dockapp_t dockapp;
#endif /* DOCKAPP_H */
#define FAIL -1
-typedef struct ssl_infos_t {
+struct ssl_infos_t {
SSL_CTX *ctx;
SSL *ssl;
-} ssl_infos_t;
+};
-_SCOPE_ ssl_infos_t ssl_infos;
+_SCOPE_ struct ssl_infos_t ssl_infos;
SSL_CTX *
InitCTX( void );
#define MAX_STR_LEN 256
-typedef struct wmnotify_t
+struct wmnotify_t
{
bool debug;
char *display_arg;
char username[MAX_STR_LEN];
char password[MAX_STR_LEN];
int sock_fd;
-} wmnotify_t;
+};
/* Exported variables */
#undef _SCOPE_
# define _SCOPE_ extern
#endif
-_SCOPE_ wmnotify_t wmnotify_infos;
+_SCOPE_ struct wmnotify_t wmnotify_infos;
#endif /* WMNOTIFY_H */