Brought mime update protocols up to speed

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1279 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Tyler Dauwalder
2002-09-29 07:19:34 +00:00
parent 682cd7e59c
commit 5a628d215b
+33 -12
View File
@@ -464,19 +464,23 @@ reply fields:
----------------------------------------------------------------------- -----------------------------------------------------------------------
perform an update_mime_info() call asynchronously perform an update_mime_info() call
target: mime manager (BRoster::fMimeMess) target: mime manager (BRoster::fMimeMess)
message: B_REG_MIME_UPDATE_MIME_INFO_ASYNC message: B_REG_MIME_UPDATE_MIME_INFO
"entry": B_REF_TYPE "entry": B_REF_TYPE
"recursive": B_BOOLEAN_TYPE "recursive": B_BOOLEAN_TYPE
"synchronous": B_BOOLEAN_TYPE
"force": B_BOOLEAN_TYPE "force": B_BOOLEAN_TYPE
reply: standard general result reply: standard general result
message fields: message fields:
- "entry": The base entry to update. - "entry": The base entry to update.
- "recursive": If true and "entry" is a directory, update all entries below - "recursive": If true and "entry" is a directory, update all entries
"entry" in the hierarchy. below "entry" in the hierarchy.
- "synchronous": If true, the call will block until the operation is
completed. If false, the call will return immediately and the operation
will run asynchronously in another thread.
- "force": If true, also update entries for which a BEOS:TYPE attribute - "force": If true, also update entries for which a BEOS:TYPE attribute
already exists. already exists.
@@ -488,22 +492,39 @@ reply fields:
----------------------------------------------------------------------- -----------------------------------------------------------------------
notify the mime manager to clean up after a now completed asynchronous perform a create_app_meta_mime() call
call to update_mime_info() or create_app_meta_mime()
target: mime manager (BRoster::fMimeMess) target: mime manager (BRoster::fMimeMess)
message: B_REG_MIME_ASYNC_THREAD_FINISHED message: B_REG_MIME_CREATE_APP_META_MIME
"thread id": B_INT32_TYPE "entry": B_REF_TYPE
"recursive": B_BOOLEAN_TYPE
"synchronous": B_BOOLEAN_TYPE
"force": B_BOOLEAN_TYPE
reply: standard general result reply: standard general result
message fields: message fields:
- "thread id": The thread id of the now finished asynchronous process. - "entry": The base entry to update.
- "recursive": If true and "entry" is a directory, update all entries
below "entry" in the hierarchy.
- "synchronous": If true, the call will block until the operation is
completed. If false, the call will return immediately and the operation
will run asynchronously in another thread.
- "force": If true, also update entries for which meta app information
already exists.
reply fields: reply fields:
- "result": - "result":
- B_OK: All related data successfully deallocated - B_OK: The asynchronous update_mime_info() call has been successfully
- B_ENTRY_NOT_FOUND: No such thread found in the list of asychronous threads started (and may still be running).
- (other error code): failure - (error code): failure
-----------------------------------------------------------------------
notify the thread manager to perform a clean up run
target: thread manager/mime manager (MIMEManager::fThreadManager/BRoster::fMimeMess)
message: B_REG_MIME_UPDATE_THREAD_FINISHED
reply: none (message should be sent asynchronously)