Tue, 01 Jun 2004 06:42:20 +0000
[gaim-migrate @ 9942]
Patch from Felipe Contreras to sync our MSN prpl with what's in his tree.
He says this may fix a couple bugs, but the important thing is the
restructuring of how MsnMessages work. Lots of style changes and other
stuff as well.
committer: Christian Hammond <chipx86@chipx86.com>
| 5370 | 1 | /** |
| 2 | * @file page.h Paging functions | |
| 3 | * | |
| 4 | * gaim | |
| 5 | * | |
|
8475
3b5687726055
[gaim-migrate @ 9208]
Christian Hammond <chipx86@chipx86.com>
parents:
6701
diff
changeset
|
6 | * Copyright (C) 2003-2004 Christian Hammond <chipx86@gnupdate.org> |
|
6701
7e2db9273748
[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 | ||
| 29 | /** | |
| 30 | * A page. | |
| 31 | */ | |
| 32 | struct _MsnPage | |
| 33 | { | |
| 34 | char *from_location; | |
| 35 | char *from_phone; | |
| 36 | ||
| 37 | char *body; | |
| 38 | }; | |
| 39 | ||
| 40 | /** | |
| 41 | * Creates a new, empty page. | |
| 42 | * | |
| 43 | * @return A new page. | |
| 44 | */ | |
| 45 | MsnPage *msn_page_new(void); | |
| 46 | ||
| 47 | /** | |
| 48 | * Destroys a page. | |
| 49 | */ | |
| 50 | void msn_page_destroy(MsnPage *page); | |
| 51 | ||
| 52 | /** | |
|
8808
1cb5ddf6b625
[gaim-migrate @ 9570]
Felipe Contreras <felipe.contreras@gmail.com>
parents:
8646
diff
changeset
|
53 | * Generates the payload data of a page. |
| 5370 | 54 | * |
|
8646
74d0e7406e3b
[gaim-migrate @ 9398]
Felipe Contreras <felipe.contreras@gmail.com>
parents:
8475
diff
changeset
|
55 | * @param page The page. |
|
74d0e7406e3b
[gaim-migrate @ 9398]
Felipe Contreras <felipe.contreras@gmail.com>
parents:
8475
diff
changeset
|
56 | * @param ret_size The returned size of the payload. |
| 5370 | 57 | * |
|
8808
1cb5ddf6b625
[gaim-migrate @ 9570]
Felipe Contreras <felipe.contreras@gmail.com>
parents:
8646
diff
changeset
|
58 | * @return The payload data of a page. |
| 5370 | 59 | */ |
|
8646
74d0e7406e3b
[gaim-migrate @ 9398]
Felipe Contreras <felipe.contreras@gmail.com>
parents:
8475
diff
changeset
|
60 | char *msn_page_gen_payload(const MsnPage *page, size_t *ret_size); |
| 5370 | 61 | |
| 62 | /** | |
| 63 | * Sets the body of a page. | |
| 64 | * | |
| 65 | * @param page The page. | |
| 66 | * @param body The body of the page. | |
| 67 | */ | |
| 68 | void msn_page_set_body(MsnPage *page, const char *body); | |
| 69 | ||
| 70 | /** | |
| 71 | * Returns the body of the page. | |
| 72 | * | |
| 73 | * @param page The page. | |
| 74 | * | |
| 75 | * @return The body of the page. | |
| 76 | */ | |
| 77 | const char *msn_page_get_body(const MsnPage *page); | |
| 78 | ||
| 79 | #endif /* _MSN_PAGE_H_ */ |