• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/forked-daapd-0.19/src/

Lines Matching refs:we

279   /* If we don't have an album_artist, set it to artist */
596 * the event loop - not its business, we're in bulk mode here.
863 * It will also rebuild the groups we just cleared.
893 struct watch_enum we;
908 /* A directory we know about, that got moved from a place
909 * we know about to a place we know nothing about
913 memset(&we, 0, sizeof(struct watch_enum));
915 we.cookie = wi->cookie;
917 ret = db_watch_enum_start(&we);
921 while ((db_watch_enum_fetchwd(&we, &rm_wd) == 0) && (rm_wd))
926 db_watch_enum_end(&we);
932 /* If the directory exists, it has been moved and we've
933 * kept track of it successfully, so we're done
940 * and we can't tell where it's going
946 memset(&we, 0, sizeof(struct watch_enum));
948 we.match = path;
950 ret = db_watch_enum_start(&we);
954 while ((db_watch_enum_fetchwd(&we, &rm_wd) == 0) && (rm_wd))
959 db_watch_enum_end(&we);
1059 * We want to scan the new file and we want to rescan the
1154 /* ioctl(FIONREAD) returns the number of bytes, now we need the number of elements */
1157 /* Loop through all the events we got */
1210 * As we only watch directories, this catches directories.
1237 struct watch_enum we;
1251 we.cookie = 0;
1257 /* We can only monitor directories with kqueue; to monitor files, we'd need
1259 * Unfortunately, that means we only know when directories get renamed,
1261 * are created/deleted/renamed in the directory, so we have to rescan.
1265 /* This should not happen, and if it does, we'll end up in
1283 * files before we trigger an eventual rescan.
1285 we.match = wi.path;
1287 ret = db_watch_enum_start(&we);
1294 while ((db_watch_enum_fetchwd(&we, &wd) == 0) && (wd))
1299 db_watch_enum_end(&we);