Please be aware that most - not all - of these methods work by communicating with mediacatd via IPC. Some return 'immediately', regardless of whether the operations succeeds or fails, and only return IPC errors; others block until the requested operation is complete, and can return actual success or failure codes.
Modules | |
| Standard registered directories | |
| Convenient, 'portable' synonyms for the standard registered directories. | |
| Messages sent by the media cataloger daemon | |
| Messages that you may want to handle. | |
| Messages sent to the media cataloger daemon | |
| Details you might be better off not knowing ... | |
| Extractor Plugins | |
| Information about implementing cataloger extractor plugins. | |
Data Structures | |
| struct | _AlpNotifyEventFileRenamed |
| struct | _AlpNotifyEventIndexFileResults |
| struct | _AlpNotifyEventIndexFileResultsHeader |
| struct | _AlpNotifyEventUnindexFileResults |
| struct | _AlpNotifyEventUnindexFileResultsHeader |
Defines | |
| #define | ALP_MS_CAT_INDEX_FILE_RESULTS_VERSION_1PT0 0x00010000 |
Version constant for the AlpNotifyEventIndexFileResultsHeader struct, sent in an ALP_NOTIFY_EVENT_MS_INDEX_FILE message. | |
| #define | ALP_MS_CAT_UNINDEX_FILE_RESULTS_VERSION_1PT0 0x00010000 |
| #define | ALP_NOTIFY_EVENT_MS_RENAME_FILE ALP_MS_EVENT_PREFIX "rename_file" |
| The event (optionally) raised by the alp_ms_cat_rename_file() method. | |
| #define | FILE_RENAMED_NOTIFICATION_VERSION_1PT0 0x00010000 |
Version constant for the AlpNotifyEventFileRenamed struct, sent by the alp_ms_cat_rename_file() method. | |
Typedefs | |
| typedef int(* | alp_ms_cat_file_copy_callback )(const char *destination_filename, const char *source_filename, int64_t bytes_copied, int64_t total_bytes, void *data) |
Optional, progress reporting callback for alp_ms_cat_file_copy_callback. | |
| typedef void * | AlpMSRegDirH |
| typedef _AlpNotifyEventFileRenamed | AlpNotifyEventFileRenamed |
| This is the structure of a ALP_NOTIFY_EVENT_MS_RENAME_FILE, optionallly sent by the alp_ms_cat_rename_file() method. | |
| typedef _AlpNotifyEventIndexFileResults | AlpNotifyEventIndexFileResults |
An ALP_NOTIFY_EVENT_MS_INDEX_FILE message contains this in its details pointer. | |
| typedef _AlpNotifyEventIndexFileResultsHeader | AlpNotifyEventIndexFileResultsHeader |
The fixed-size part of an AlpNotifyEventIndexFileResults struct. | |
| typedef _AlpNotifyEventUnindexFileResults | AlpNotifyEventUnindexFileResults |
An ALP_NOTIFY_EVENT_MS_UNINDEX_FILE message contains this in its details pointer. | |
| typedef _AlpNotifyEventUnindexFileResultsHeader | AlpNotifyEventUnindexFileResultsHeader |
The fixed-size part of an AlpNotifyEventUnindexFileResults struct. | |
Enumerations | |
| enum | AlpMsCatIndexFileStatus { ALP_MS_CAT_IFS_SUCCESS, ALP_MS_CAT_IFS_FILE_DOES_NOT_EXIST, ALP_MS_CAT_IFS_NOT_IN_REGISTERED_DIRECTORY, ALP_MS_CAT_IFS_INDEXING_ERROR, ALP_MS_CAT_IFS_DATABASE_ERROR } |
| enum | AlpMsCatUnindexFileStatus { ALP_MS_CAT_UFS_SUCCESS, ALP_MS_CAT_UFS_NOT_INDEXED, ALP_MS_CAT_UFS_UNINDEXING_ERROR, ALP_MS_CAT_UFS_FILE_DOES_NOT_EXIST } |
Functions | |
| alp_status_t | alp_ms_cat_copy_file (const char *new_filename, const char *existing_filename, alp_ms_cat_file_copy_callback callback, void *data) |
| Copy a single file and its metadata to a new location, optionally with a new filename. | |
| bool | alp_ms_cat_extension_supported (const char *extension) |
| Checks to see if a certain media format is indexed by The Media Selector. | |
| alp_status_t | alp_ms_cat_get_registered_begin (AlpMSRegDirH *handle) |
| Enumerates over the registered directories, initializes enumeration. | |
| alp_status_t | alp_ms_cat_get_registered_end (AlpMSRegDirH handle) |
| Cleans up after enumeration over the registered directories. | |
| alp_status_t | alp_ms_cat_get_registered_next_dir (AlpMSRegDirH handle, char **directory) |
| Enumerates over the registered directories, gets next entry. | |
| alp_status_t | alp_ms_cat_index_file (const char *filename) |
| Adds a single file to catalog, and extracts its metadata. | |
| alp_status_t | alp_ms_cat_register_directory (const char *path) |
| Adds path to Cataloger media paths and does a recursive scan for media files. | |
| alp_status_t | alp_ms_cat_rename_file (const char *new_filename, const char *existing_url, const char *notification_app) |
| Rename a single file and its metadata, optionally broadcasting an ALP_NOTIFY_EVENT_MS_RENAME_FILE event that contains an AlpNotifyEventFileRenamed structure with the original URL and the new filename. | |
| alp_status_t | alp_ms_cat_unindex_file (const char *filename) |
| Removes a single file and its metadata from catalog. | |
| alp_status_t | alp_ms_cat_unregister_directory (const char *path) |
| Removes path from cataloger db, and removes all data (from metadata.db) about files in (or under) this directory. | |
| alp_status_t | alp_ms_cat_update (const char *path) |
| Call when the contents of a registered directory change, to update the catalog. (When you add a single file, alp_ms_cat_index_file is significantly faster than alp_ms_cat_update().). | |
|
|
Version constant for the
|
|
|
Version constant for the |
|
|
The event (optionally) raised by the alp_ms_cat_rename_file() method.
|
|
|
Version constant for the
|
|
|
Optional, progress reporting callback for
|
|
|
|
|
|
This is the structure of a ALP_NOTIFY_EVENT_MS_RENAME_FILE, optionallly sent by the alp_ms_cat_rename_file() method.
|
|
|
An
|
|
|
The fixed-size part of an
|
|
|
An
|
|
|
The fixed-size part of an
|
|
|
alp_ms_cat_index_file() result codes: contained in an
|
|
|
alp_ms_cat_unindex_file() result codes: contained in an
|
|
||||||||||||||||||||
|
Copy a single file and its metadata to a new location, optionally with a new filename.
|
|
|
Checks to see if a certain media format is indexed by The Media Selector.
|
|
|
Enumerates over the registered directories, initializes enumeration.
|
|
|
Cleans up after enumeration over the registered directories.
|
|
||||||||||||
|
Enumerates over the registered directories, gets next entry.
|
|
|
Adds a single file to catalog, and extracts its metadata.
|
|
|
Adds path to Cataloger media paths and does a recursive scan for media files.
|
|
||||||||||||||||
|
Rename a single file and its metadata, optionally broadcasting an ALP_NOTIFY_EVENT_MS_RENAME_FILE event that contains an AlpNotifyEventFileRenamed structure with the original URL and the new filename.
|
|
|
Removes a single file and its metadata from catalog.
|
|
|
Removes path from cataloger db, and removes all data (from metadata.db) about files in (or under) this directory.
|
|
|
Call when the contents of a registered directory change, to update the catalog. (When you add a single file, alp_ms_cat_index_file is significantly faster than alp_ms_cat_update().).
|
Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.