- Main Page
- Data Structures
- Files

- File List
- Globals

# jasperserver/attachment.h

Go to the documentation of this file.

    00001 /*
    00002  * Copyright (C) 2007 JasperSoft http://www.jaspersoft.com
    00003  *
    00004  * This program is free software; you can redistribute it and/or modify
    00005  * it under the terms of the GNU General Public License as published by
    00006  * the Free Software Foundation; either version 2 of the License, or
    00007  * (at your option) any later version.
    00008  *
    00009  * This program is distributed WITHOUT ANY WARRANTY; and without the
    00010  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    00011  * See the GNU General Public License for more details.
    00012  *
    00013  * You should have received a copy of the GNU General Public License
    00014  * along with this program; if not, see http://www.gnu.org/licenses/gpl.txt
    00015  * or write to:
    00016  *
    00017  * Free Software Foundation, Inc.,
    00018  * 59 Temple Place - Suite 330,
    00019  * Boston, MA  USA  02111-1307
    00020  */
    00021
    00022 #include <stdsoap2.h>
    00032 typedef struct jasperserver_attachment
    00033 {
    00034     unsigned char * __ptr;
    00035     int __size;
    00036     char *id;
    00037     char *type;
    00038     char *options;
    00039 } jasperserver_attachment_t;
    00040
    00060 int jasperserver_attach_file(struct soap* soapPtr, const char* fileName);
    00061
    00077 void *jasperserver_dime_read_open(struct soap *soap, void *handle, const char *id, const char *type, const char *options);
    00078
    00093 void jasperserver_dime_read_close(struct soap *soap, void *handle);
    00094
    00109 size_t jasperserver_dime_read(struct soap *soap, void *handle, char *buf, size_t len);
    00110
    00128 int jasperserver_read_file(const char* fileName, char **dataPtr, size_t *sizePtr);