X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=plm_dbtool.c;h=ad6a95b14ec316057a7114c7fd29e7366341d962;hp=4597e15c71ab5747a8730c91d48e71a43a31ae40;hb=27a031aac0ed4d7b4e45b67afa3cbbb2b7ddb207;hpb=c5517c98d28a74a89086b0641e3633d16eaf9df7 diff --git a/plm_dbtool.c b/plm_dbtool.c index 4597e15c..ad6a95b1 100644 --- a/plm_dbtool.c +++ b/plm_dbtool.c @@ -25,10 +25,17 @@ #include "string.h" #include "ipc.h" +/** + * structure used for transmission of the playlist + * + * There's one such struct which gets initialized during startup. It lives in + * shared memory and is used by com_lpl(). + */ struct plm_client_data { - size_t size; /** allocated and set by com_lpl() (child) */ int shm_id; +/** the size of the shared memory area identified by \a shm_id */ + size_t size; /** initially locked, gets unlocked by parent when it is done */ int mutex; /** return value, set by parent */ @@ -241,7 +248,7 @@ static void plm_post_select(__unused fd_set *rfds, __unused fd_set *wfds) goto out; } PARA_DEBUG_LOG("loading new playlist (%d bytes)\n", pcd->size); - ret = for_each_line((char *)shm, pcd->size, &playlist_add, 0); + ret = for_each_line((char *)shm, pcd->size, &playlist_add); shm_detach(shm); PARA_NOTICE_LOG("new playlist (%d entries)\n", playlist_len); pcd->retval = 1;