Jump to main content

##

# 1.2.7.4.69 SYS_FS_MEDIA_MANAGER_EventHandlerSet Function

## C

    void SYS_FS_MEDIA_MANAGER_EventHandlerSet
    (
        const void * eventHandler,
        const uintptr_t context
    );

## Summary

Register the event handler for Mount/Un-Mount events.

## Description

This function is used to register a FS client event handler for notifying the Mount/Un-Mount events when AutoMount feature is enabled for File system.

On Mount/Un-Mount of a volume all the registered clients will be notified. The client should check if the mount name passed when event handler is called is the one it is expecting and then proceed.

## Parameters

Param | Description
--- | ---
eventHandler | FS Client event handler pointer
context | FS Client context

## Returns

None.

## Remarks

This API should not be called directly from Application. Application should use SYS_FS_EventHandlerSet() instead.

This API is Available only when SYS_FS_AUTOMOUNT_ENABLE is set to true.

See sys_fs.h for usage information.