[maemo-commits] [maemo-commits] r16340 - projects/haf/trunk/ke-recv/src
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Fri Oct 3 16:19:35 EEST 2008
- Previous message: [maemo-commits] r16339 - in projects/haf/branches/hildon-thumbnail/daemonize: . albumart-providers/googleimages daemon
- Next message: [maemo-commits] r16341 - in projects/haf/trunk/ke-recv: debian src
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: kihamala
Date: 2008-10-03 16:19:35 +0300 (Fri, 03 Oct 2008)
New Revision: 16340
Modified:
projects/haf/trunk/ke-recv/src/events.c
Log:
added more ignore_cable logic
Modified: projects/haf/trunk/ke-recv/src/events.c
===================================================================
--- projects/haf/trunk/ke-recv/src/events.c 2008-10-03 13:17:06 UTC (rev 16339)
+++ projects/haf/trunk/ke-recv/src/events.c 2008-10-03 13:19:35 UTC (rev 16340)
@@ -847,7 +847,8 @@
ULOG_DEBUG_F("E_CLOSED for %s", mmc->name);
/* notify applications about closed cover */
inform_mmc_cover_open(FALSE, mmc);
- if (get_cable_peripheral() && !device_locked) {
+ if (!ignore_cable && get_cable_peripheral()
+ && !device_locked) {
usb_share_card(mmc, TRUE);
} else {
init_mmc_volumes(mmc);
@@ -999,7 +1000,7 @@
/* notify applications about opened cover */
inform_mmc_cover_open(TRUE, mmc);
- if (get_cable_peripheral()) {
+ if (!ignore_cable && get_cable_peripheral()) {
unshare_usb_shared_card(mmc);
mmc->state = S_COVER_OPEN;
break;
@@ -1043,7 +1044,7 @@
break;
case E_VOLUME_ADDED:
ULOG_DEBUG_F("E_VOLUME_ADDED for %s", mmc->name);
- if (!get_cable_peripheral()) {
+ if (ignore_cable || !get_cable_peripheral()) {
update_mmc_label(mmc);
if (mount_volumes(mmc)) {
if (!mmc->skip_banner) {
@@ -1059,21 +1060,22 @@
break;
case E_VOLUME_REMOVED:
ULOG_DEBUG_F("E_VOLUME_REMOVED for %s", mmc->name);
- if (!get_cable_peripheral()) {
+ if (ignore_cable || !get_cable_peripheral()) {
discard_volume(mmc, arg);
}
break;
case E_DEVICE_ADDED:
ULOG_DEBUG_F("E_DEVICE_ADDED for %s", mmc->name);
inform_device_present(TRUE, mmc);
- if (get_cable_peripheral() && !device_locked) {
+ if (!ignore_cable && get_cable_peripheral()
+ && !device_locked) {
usb_share_card(mmc, TRUE);
}
break;
case E_DEVICE_REMOVED:
ULOG_DEBUG_F("E_DEVICE_REMOVED for %s", mmc->name);
inform_device_present(FALSE, mmc);
- if (get_cable_peripheral()) {
+ if (!ignore_cable && get_cable_peripheral()) {
unshare_usb_shared_card(mmc);
} else {
unmount_volumes(&mmc->volumes);
@@ -1093,7 +1095,7 @@
ULOG_DEBUG_F("E_INIT_CARD for %s", mmc->name);
if (mmc->whole_device != NULL) {
inform_device_present(TRUE, mmc);
- if (get_cable_peripheral()
+ if (!ignore_cable && get_cable_peripheral()
&& !device_locked) {
usb_share_card(mmc, FALSE);
} else {
@@ -1120,7 +1122,8 @@
inform_mmc_cover_open(FALSE, mmc);
CLOSE_DIALOG
CLOSE_SWAP_DIALOG
- if (get_cable_peripheral() && !device_locked) {
+ if (!ignore_cable && get_cable_peripheral()
+ && !device_locked) {
usb_share_card(mmc, TRUE);
} else {
init_mmc_volumes(mmc); /* re-read volumes */
- Previous message: [maemo-commits] r16339 - in projects/haf/branches/hildon-thumbnail/daemonize: . albumart-providers/googleimages daemon
- Next message: [maemo-commits] r16341 - in projects/haf/trunk/ke-recv: debian src
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
