utils.h

#ifndef __UTILS_H_
#define __UTILS_H_

/*
 * Assuming the .Xauthority file assuming it resides in the home directory of
 * the user login provided. The caller assumes ownership of the memory pointed
 * to at *out.
 *
 * Return 0 on success, -1 otherwise.
 */
int locate_xauthority_file(const char *login, char **out);

#endif