Home | History | Annotate | Download | only in lib
      1 /*
      2  * Copyright (C) 2008-2009 SVOX AG, Baslerstr. 30, 8048 Zuerich, Switzerland
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *     http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 /**
     17  * @file picokdbg.h
     18  *
     19  * debug support knowledge base
     20  *
     21  * Copyright (C) 2008-2009 SVOX AG, Baslerstr. 30, 8048 Zuerich, Switzerland
     22  * All rights reserved.
     23  *
     24  * History:
     25  * - 2009-04-20 -- initial version
     26  *-  0.1, 08.05.2008, MRi - initial version
     27  *
     28  */
     29 
     30 #ifndef PICOKDBG_H_
     31 #define PICOKDBG_H_
     32 
     33 
     34 #include "picoos.h"
     35 #include "picoknow.h"
     36 
     37 #ifdef __cplusplus
     38 extern "C" {
     39 #endif
     40 #if 0
     41 }
     42 #endif
     43 
     44 
     45 /* ************************************************************/
     46 /* Dbg type and functions */
     47 /* ************************************************************/
     48 
     49 /**
     50  * to be used by picorsrc only
     51  */
     52 pico_status_t picokdbg_specializeDbgKnowledgeBase(picoknow_KnowledgeBase this,
     53                                                   picoos_Common common);
     54 
     55 typedef struct picokdbg_dbg *picokdbg_Dbg;
     56 
     57 /**
     58  * return kb Phones for usage in PU
     59  */
     60 picokdbg_Dbg picokdbg_getDbg(picoknow_KnowledgeBase this);
     61 
     62 
     63 /* phone ID - phone symbol conversion functions */
     64 
     65 /**
     66  * return phone ID for phone symbol 'phsym' which must be 0 terminated
     67  */
     68 picoos_uint8 picokdbg_getPhoneId(const picokdbg_Dbg dbg,
     69                                  const picoos_char *phsym);
     70 
     71 /**
     72  * return pointer to phone symbol for phone ID phid
     73  */
     74 picoos_char *picokdbg_getPhoneSym(const picokdbg_Dbg dbg,
     75                                   const picoos_uint8 phid);
     76 
     77 #ifdef __cplusplus
     78 }
     79 #endif
     80 
     81 
     82 #endif /*PICOKDBG_H_*/
     83