Home | History | Annotate | Download | only in liblog

Lines Matching refs:logState

67 typedef struct LogState {
88 } LogState;
120 static LogState *openLogTable[MAX_OPEN_LOGS];
123 * Allocate an fd and associate a new LogState with it.
126 static LogState *createLogState()
132 openLogTable[i] = calloc(1, sizeof(LogState));
141 * Translate an fd to a LogState.
143 static LogState *fdToLogState(int fd)
156 LogState *ls;
183 static void configureInitialState(const char* pathName, LogState* logState)
187 logState->debugName = strdup(pathName);
191 logState->isBinary = 1;
195 logState->globalMinPriority = ANDROID_LOG_INFO;
260 logState->globalMinPriority = minPrio;
261 TRACE("+++ global min prio %d\n", logState->globalMinPriority);
263 logState->tagSet[entry].minPriority = minPrio;
264 strcpy(logState->tagSet[entry].tag, tagName);
267 logState->tagSet[entry].tag,
268 logState->tagSet[entry].minPriority);
301 logState->outputFormat = format;
352 static void showLog(LogState *state,
550 LogState* state;
552 /* Make sure that no-one frees the LogState while we're using it.
622 LogState *logState;
627 logState = createLogState();
628 if (logState != NULL) {
629 configureInitialState(pathName, logState);
630 fd = logState->fakeFd;