/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* tests mime message file parsing */ #include "stdio.h" #include "camel-mime-message.h" #include "camel-mime-part.h" #include "camel-stream.h" #include "camel-stream-fs.h" #include "camel.h" int main (int argc, char**argv) { CamelMimeMessage *message; CamelStream *input_stream; CamelException *ex = camel_exception_new (); gtk_init (&argc, &argv); camel_init (); message = camel_mime_message_new (); input_stream = camel_stream_fs_new_with_name ("mail.test", O_RDONLY, 0, ex); if (!input_stream) { perror ("could not open input file\n"); printf ("You must create the file mail.test before running this test\n"); exit(2); } camel_data_wrapper_construct_from_stream ( CAMEL_DATA_WRAPPER (message), input_stream); camel_medium_get_content_object (CAMEL_MEDIUM (message)); #if 0 camel_stream_close (input_stream); gtk_object_unref (GTK_OBJECT (input_stream)); output_stream = camel_stream_fs_new_with_name ("mail2.test", O_WRONLY|O_TRUNC|O_CREAT, 0600); camel_data_wrapper_write_to_stream (CAMEL_DATA_WRAPPER (message), output_stream); camel_stream_close (output_stream); gtk_object_unref (GTK_OBJECT (output_stream)); //gtk_object_unref (GTK_OBJECT (message)); #endif return 0; } e='id' value='b3c06ec5cbf7b91dec778bf751499bb690986a4c'/> FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
path: root/audio/fcplay
Commit message (Expand)AuthorAgeFilesLines
* audio/fcplay: Fix build on DFmarino2016-12-181-0/+9
* Cleanup patches, a* categories.mat2016-07-276-18/+18
* Remove ${PORTSDIR}/ from dependencies, Mk and categories a, b, and c.mat2016-04-011-1/+1
* - Add LICENSE_FILEamdmi32015-11-101-0/+3
* Rename audio/ patch-xy patches to reflect the files they modify.adamw2014-07-283-0/+0
* This port requires the libsidplay library, not just a header file foradamw2014-07-281-6/+3
* Reset the 99 ports still listed under sylvio@marino2014-06-121-1/+1
* Support staging.ehaupt2014-02-091-8/+7
* Convert to PORT_OPTIONS:MDOCS.adamw2014-01-031-1/+3
* Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-201-0/+1
* Convert audio from USE_GMAKE to USES=gmakebapt2013-08-311-6/+2
* Geocities has been gone for almost 2 years now, so let's removedougb2011-08-231-1/+0
* - Add licensesylvio2011-05-201-0/+2
* - Get Rid MD5 supportmiwi2011-03-191-1/+0
* - Update my mail address to FreeBSDsylvio2009-11-281-1/+1
* - Pass maintainership to submittermiwi2009-09-201-1/+1
* - Remove USE_GCC where it can be satisfied with base compiler on followingpav2008-07-251-1/+0
* C++ fixes to make fcplay build with GCC 3.2+.anders2006-06-074-1/+103
* Remove USE_REINPLACE from ports in categories starting with A.edwin2006-05-031-1/+0
* - Add some SHA256 checksumspav2005-11-241-0/+2
* add USE_GCC=2.95 and unbreak this port.leeym2004-02-082-16/+6
* Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.marcus2004-02-041-1/+1
* portlint (whitespace cleanup)kris2003-10-271-1/+1