Mac-Pasteboard
view release on metacpan or search on metacpan
unsigned long id,
const char *pbflavor,
PB_FLAVOR_FLAGS flags
);
/*
* pbl_paste returns the desired flavor of pasteboard data from the
* pasteboard item with the given id (or the first one encountered if
* the 'any' argument is true), and the size of the data. You must
* free() the data after use.
*/
OSStatus pbl_paste (
void *pbref,
int any,
unsigned long id,
const char *pbflavor,
unsigned char **data,
size_t *size,
PB_FLAVOR_FLAGS *flags
);
/*
* pbl_release releases the pasteboard indicated by the reference. This
* reference must not be used subsequent to the release. This routine
* always succeeds.
*/
OSStatus pbl_release (
void * pbref
);
/*
* pbl_retain retains the pasteboard indicated by the reference. Since
* CoreFoundation uses a reference-count garbage collection system,
* calling this will cause the next pbl_release NOT to release the
* pasteboard. The only valid use of this I can think of is when cloning
* an object.
*/
OSStatus pbl_retain (
void * pbref
);
/*
* pbl_synch calls PasteboardSynchronize, and returns the
* synchronization flags.
*/
unsigned long pbl_synch (void * pbref);
/*
* pbl_uti_tags returns the preferred tags associated with the given
* UTI in the given structure. On return, the elements of the structure
* will contain either strings (which must be freed), or NULL.
*/
void pbl_uti_tags (char * c_uti, pbl_uti_tags_t * tags);
/*
* pbl_all returns everything on the clipboard, subject to the settings
* in the rqst argument, to wit:
* if rqst.all is false, only data matching the given id is
* returned.
* if rqst.want_data is false, the actual flavor data is not
* returned.
*/
OSStatus pbl_all (
void * pbref,
pbl_rqst_t *rqst,
pbl_resp_t **resp,
size_t * num_resp
);
/*
* pbl_free_all frees the structure returned by pbl_all.
*/
void pbl_free_all (pbl_resp_t *data, size_t size);
#define _PBL_H_LOADED
#endif
( run in 0.767 second using v1.01-cache-2.11-cpan-84e82930d8c )