def acquire_filename(self, name):
id_ = self.__id_lut.get(name)<EOL>if id_ is None:<EOL><INDENT>id_ = self.__next_id<EOL>self.__next_id += <NUM_LIT:1><EOL>self.__id_lut[name] = id_<EOL>entry = filename_entry_t(name)<EOL>self.__entries[id_] = entry<EOL><DEDENT>else:<EOL><INDENT>entry = self.__entries[id_]<EOL><DEDENT>entry.inc_ref_count()<EOL>return id_, self._get_signature(entry)<EOL>
Acquire a file name and return its id and its signature.