From 126787e9dea748454061a81f5a990f07e9c1266b Mon Sep 17 00:00:00 2001 From: ketmar Date: Sat, 14 Sep 2013 10:11:34 +0300 Subject: [PATCH] poll.h: cosmetix --- src/poll.h | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/src/poll.h b/src/poll.h index 7b1ca52..2e30587 100644 --- a/src/poll.h +++ b/src/poll.h @@ -1,56 +1,62 @@ /* logjam - a GTK client for LiveJournal. * Copyright (C) 2000-2004 Evan Martin - * - * vim: tabstop=4 shiftwidth=4 noexpandtab : */ - #ifndef __LOGJAM_POLL_H__ #define __LOGJAM_POLL_H__ + typedef enum { - PQ_RADIO = 0, /* first three */ - PQ_COMBO, /* must be */ - PQ_CHECK, /* in this order */ + PQ_RADIO = 0, /* first three */ + PQ_COMBO, /* must be */ + PQ_CHECK, /* in this order */ PQ_TEXT, PQ_SCALE } PQType; + typedef struct { PQType type; char *question; } PollQuestion; + typedef struct { PollQuestion question; GSList *answers; } PollQuestionMulti; + typedef struct { PollQuestion question; int size, width; } PollQuestionText; + typedef struct { PollQuestion question; int from, to, by; } PollQuestionScale; + typedef enum { PSEC_ALL, PSEC_FRIENDS, PSEC_NONE } PollSecurity; + typedef struct { char *name; PollSecurity viewers, voters; GSList *questions; } Poll; -PollQuestion *pollmultidlg_run(GtkWindow * parent, PollQuestionMulti * pqm); -PollQuestion *polltextdlg_run(GtkWindow * parent, PollQuestionText * pqt); -PollQuestion *pollscaledlg_run(GtkWindow * parent, PollQuestionScale * pqs); -void poll_question_free(PollQuestion * pq); +extern PollQuestion *pollmultidlg_run (GtkWindow *parent, PollQuestionMulti *pqm); +extern PollQuestion *polltextdlg_run (GtkWindow *parent, PollQuestionText *pqt); +extern PollQuestion *pollscaledlg_run (GtkWindow *parent, PollQuestionScale *pqs); + +extern void poll_question_free (PollQuestion *pq); + -#endif /* __LOGJAM_POLL_H__ */ +#endif -- 2.11.4.GIT