mountpoint.h revision 7c7d2244502af05f77c74736dc1aec0123fdba80
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainen unsigned int block_size; /* may not be set for iteration */
573f0491a5733fe21fa062a455acb4790b4e0499Timo Sirainen/* Returns 1 = found, 0 = not found (from mount tabs, or the path itself),
573f0491a5733fe21fa062a455acb4790b4e0499Timo Sirainen -1 = error */
3ed2d0f6b5e67e2663d44489d9da3176823789a8Timo Sirainenint mountpoint_get(const char *path, pool_t pool, struct mountpoint *point_r);
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainen/* Iterate through mountpoints */
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainenstruct mountpoint_iter *mountpoint_iter_init(void);
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainen/* Returns the next mountpoint or NULL if there are no more. */
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainenconst struct mountpoint *mountpoint_iter_next(struct mountpoint_iter *iter);
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainen/* Returns 0 if mountpoints were iterated successfully, -1 if it failed. */