getUploadMode :: MonadIO m =>  TorrentStatus -> m Bool
getUploadMode ho =
  liftIO . withPtr ho $ \hoPtr ->
  toBool <$> [CU.exp| bool { $(torrent_status * hoPtr)->upload_mode } |]
getUploadMode :: MonadIO m =>  TorrentStatus -> m Bool
getUploadMode ho =
  liftIO . withPtr ho $ \hoPtr ->
  toBool <$> [CU.exp| bool { $(torrent_status * hoPtr)->upload_mode } |]
getUploadMode ho =
  liftIO . withPtr ho $ \hoPtr ->
  toBool <$> [CU.exp| bool { $(torrent_status * hoPtr)->upload_mode } |]