Mercurial > pidgin
annotate src/protocols/msn/page.h @ 9125:668ffb8fec00
[gaim-migrate @ 9902]
(12:53:05) nosnilmot: LSchiere: not majorly important, but the pref changes
listed in the ChangeLog are out of sync
committer: Tailor Script <tailor@pidgin.im>
| author | Luke Schierer <lschiere@pidgin.im> |
|---|---|
| date | Sun, 30 May 2004 16:54:40 +0000 |
| parents | 9e5a709c30a8 |
| children | c30d81b4dd22 |
| rev | line source |
|---|---|
| 5370 | 1 /** |
| 2 * @file page.h Paging functions | |
| 3 * | |
| 4 * gaim | |
| 5 * | |
|
8475
06f57183e29f
[gaim-migrate @ 9208]
Christian Hammond <chipx86@chipx86.com>
parents:
6701
diff
changeset
|
6 * Copyright (C) 2003-2004 Christian Hammond <chipx86@gnupdate.org> |
|
6701
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
5370
diff
changeset
|
7 * |
| 5370 | 8 * This program is free software; you can redistribute it and/or modify |
| 9 * it under the terms of the GNU General Public License as published by | |
| 10 * the Free Software Foundation; either version 2 of the License, or | |
| 11 * (at your option) any later version. | |
| 12 * | |
| 13 * This program is distributed in the hope that it will be useful, | |
| 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 16 * GNU General Public License for more details. | |
| 17 * | |
| 18 * You should have received a copy of the GNU General Public License | |
| 19 * along with this program; if not, write to the Free Software | |
| 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 21 */ | |
| 22 #ifndef _MSN_PAGE_H_ | |
| 23 #define _MSN_PAGE_H_ | |
| 24 | |
| 25 typedef struct _MsnPage MsnPage; | |
| 26 | |
| 27 #include "session.h" | |
| 28 #include "user.h" | |
| 29 | |
| 30 /** | |
| 31 * A page. | |
| 32 */ | |
| 33 struct _MsnPage | |
| 34 { | |
| 35 char *from_location; | |
| 36 char *from_phone; | |
| 37 | |
| 38 char *body; | |
| 39 }; | |
| 40 | |
| 41 /** | |
| 42 * Creates a new, empty page. | |
| 43 * | |
| 44 * @return A new page. | |
| 45 */ | |
| 46 MsnPage *msn_page_new(void); | |
| 47 | |
| 48 /** | |
| 49 * Destroys a page. | |
| 50 */ | |
| 51 void msn_page_destroy(MsnPage *page); | |
| 52 | |
| 53 /** | |
|
8808
bbd8cdaf0ad5
[gaim-migrate @ 9570]
Christian Hammond <chipx86@chipx86.com>
parents:
8646
diff
changeset
|
54 * Generates the payload data of a page. |
| 5370 | 55 * |
|
8646
1e211dde3cae
[gaim-migrate @ 9398]
Christian Hammond <chipx86@chipx86.com>
parents:
8475
diff
changeset
|
56 * @param page The page. |
|
1e211dde3cae
[gaim-migrate @ 9398]
Christian Hammond <chipx86@chipx86.com>
parents:
8475
diff
changeset
|
57 * @param ret_size The returned size of the payload. |
| 5370 | 58 * |
|
8808
bbd8cdaf0ad5
[gaim-migrate @ 9570]
Christian Hammond <chipx86@chipx86.com>
parents:
8646
diff
changeset
|
59 * @return The payload data of a page. |
| 5370 | 60 */ |
|
8646
1e211dde3cae
[gaim-migrate @ 9398]
Christian Hammond <chipx86@chipx86.com>
parents:
8475
diff
changeset
|
61 char *msn_page_gen_payload(const MsnPage *page, size_t *ret_size); |
| 5370 | 62 |
| 63 /** | |
| 64 * Sets the body of a page. | |
| 65 * | |
| 66 * @param page The page. | |
| 67 * @param body The body of the page. | |
| 68 */ | |
| 69 void msn_page_set_body(MsnPage *page, const char *body); | |
| 70 | |
| 71 /** | |
| 72 * Returns the body of the page. | |
| 73 * | |
| 74 * @param page The page. | |
| 75 * | |
| 76 * @return The body of the page. | |
| 77 */ | |
| 78 const char *msn_page_get_body(const MsnPage *page); | |
| 79 | |
| 80 #endif /* _MSN_PAGE_H_ */ |
