Home | History | Annotate | Download | only in liblog

Lines Matching refs:logState

61 typedef struct LogState {
82 } LogState;
114 static LogState *openLogTable[MAX_OPEN_LOGS];
117 * Allocate an fd and associate a new LogState with it.
120 static LogState *createLogState()
126 openLogTable[i] = calloc(1, sizeof(LogState));
135 * Translate an fd to a LogState.
137 static LogState *fdToLogState(int fd)
150 LogState *ls;
177 static void configureInitialState(const char* pathName, LogState* logState)
181 logState->debugName = strdup(pathName);
185 logState->isBinary = 1;
189 logState->globalMinPriority = ANDROID_LOG_INFO;
254 logState->globalMinPriority = minPrio;
255 TRACE("+++ global min prio %d\n", logState->globalMinPriority);
257 logState->tagSet[entry].minPriority = minPrio;
258 strcpy(logState->tagSet[entry].tag, tagName);
261 logState->tagSet[entry].tag,
262 logState->tagSet[entry].minPriority);
295 logState->outputFormat = format;
346 static void showLog(LogState *state,
544 LogState* state;
546 /* Make sure that no-one frees the LogState while we're using it.
616 LogState *logState;
621 logState = createLogState();
622 if (logState != NULL) {
623 configureInitialState(pathName, logState);
624 fd = logState->fakeFd;