![]() |
![]() |
![]() |
GMime Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#define GMIME_DISPOSITION_ATTACHMENT #define GMIME_DISPOSITION_INLINE GMimeDisposition; GMimeDisposition * g_mime_disposition_new (const char *disposition
); void g_mime_disposition_destroy (GMimeDisposition *disposition
); void g_mime_disposition_set (GMimeDisposition *disposition
,const char *value
); const char * g_mime_disposition_get (GMimeDisposition *disposition
); void g_mime_disposition_add_parameter (GMimeDisposition *disposition
,const char *attribute
,const char *value
); const char * g_mime_disposition_get_parameter (GMimeDisposition *disposition
,const char *attribute
); char * g_mime_disposition_header (GMimeDisposition *disposition
,gboolean fold
);
A GMimeDisposition represents the pre-parsed contents of a Content-Disposition header field.
#define GMIME_DISPOSITION_ATTACHMENT "attachment"
Standard attachment disposition.
typedef struct { char *disposition; GMimeParam *params; GHashTable *param_hash; } GMimeDisposition;
GMimeDisposition * g_mime_disposition_new (const char *disposition
);
Creates a new GMimeDisposition object.
|
disposition header (and params) |
Returns : |
a new disposition object |
void g_mime_disposition_destroy (GMimeDisposition *disposition
);
Destroy the disposition object.
|
disposition object |
void g_mime_disposition_set (GMimeDisposition *disposition
,const char *value
);
Sets the disposition to value
which may be one of
GMIME_DISPOSITION_ATTACHMENT or GMIME_DISPOSITION_INLINE or, by your
choice, any other string which would indicate how the MIME part
should be displayed by the MUA.
|
disposition object |
|
disposition value |
const char * g_mime_disposition_get (GMimeDisposition *disposition
);
Gets the disposition or NULL
on fail.
|
disposition object |
Returns : |
the disposition string which is probably one of GMIME_DISPOSITION_ATTACHMENT or GMIME_DISPOSITION_INLINE. |
void g_mime_disposition_add_parameter (GMimeDisposition *disposition
,const char *attribute
,const char *value
);
Adds a new parameter of name name
and value value
to the
disposition.
|
disposition object |
|
parameter name |
|
parameter value |
const char * g_mime_disposition_get_parameter (GMimeDisposition *disposition
,const char *attribute
);
Gets the value of the parameter attribute
, or NULL
on fail.
|
disposition object |
|
parameter name |
Returns : |
the value of the parameter of name attribute . |
char * g_mime_disposition_header (GMimeDisposition *disposition
,gboolean fold
);
Allocates a string buffer containing the Content-Disposition header
represented by the disposition object disposition
.
|
disposition object |
|
fold header if needed |
Returns : |
a string containing the disposition header |