X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Fltt%2Ffacility.c;h=a14a6e090eac02e1e1016944341d27c253b58de2;hb=05463aa54c3a5bd881c830177a83f468c208e74e;hp=b1c26baa18daec226a46d2955e7a26ed71094ef0;hpb=908f42fafd8d7dc4d1ed17d5b2eede4d7d64a4e3;p=lttv.git diff --git a/ltt/branches/poly/ltt/facility.c b/ltt/branches/poly/ltt/facility.c index b1c26baa..a14a6e09 100644 --- a/ltt/branches/poly/ltt/facility.c +++ b/ltt/branches/poly/ltt/facility.c @@ -1,9 +1,28 @@ +/* This file is part of the Linux Trace Toolkit viewer + * Copyright (C) 2003-2004 Xiangxiu Yang + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License Version 2 as + * published by the Free Software Foundation; + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, + * MA 02111-1307, USA. + */ + #include #include #include -#include #include "parser.h" +#include +#include "ltt-private.h" #include /* search for the (named) type in the table, if it does not exist @@ -74,6 +93,7 @@ void ltt_facility_open(LttTrace * t, char * pathname) generateChecksum(fac->name, &checksum, &fac->events); f = g_new(LttFacility,1); + f->base_id = 0; generateFacility(f, fac, checksum); t->facility_number++;