Fixed MTP to work with TWRP

This commit is contained in:
awab228 2018-06-19 23:16:04 +02:00
commit f6dfaef42e
50820 changed files with 20846062 additions and 0 deletions

View file

@ -0,0 +1,31 @@
/****************************************************************************
*
* Copyright (c) 2014 - 2016 Samsung Electronics Co., Ltd. All rights reserved
*
****************************************************************************/
#ifndef _SRVMAN_H
#define _SRVMAN_H
#include <linux/wakelock.h>
struct srvman;
void srvman_init(struct srvman *srvman, struct scsc_mx *mx);
void srvman_freeze_services(struct srvman *srvman);
void srvman_unfreeze_services(struct srvman *srvman, u16 scsc_panic_code);
void srvman_set_error(struct srvman *srvman);
void srvman_clear_error(struct srvman *srvman);
void srvman_deinit(struct srvman *srvman);
struct srvman {
struct scsc_mx *mx;
struct list_head service_list;
struct mutex service_list_mutex;
struct mutex api_access_mutex;
bool error;
struct wake_lock sm_wake_lock;
};
#endif