
#include <stdio.h>
#include <string.h>
#include "mbdr_dsp_debug_stream_manage.h"
#include "mbdr_dsp_dbg_print_stream_puts.h"
#include "mbdr_dsp_debug_print_utils.h"



static  void mbdr_dsp_debug_stream_puts_do_nothing (void *pio_output_stream_manage_p);
static  void mbdr_dsp_debug_stream_puts_print(void *pio_output_stream_manage_p,
                                              char *string_p);

mbdr_dsp_dbg_print_output_stream_procs_t
            mbdr_dsp_dbg_print_stream_puts =
{
  &mbdr_dsp_debug_stream_puts_do_nothing,   /* open */
  &mbdr_dsp_debug_stream_puts_print,
  &mbdr_dsp_debug_stream_puts_do_nothing    /* close */
};
void *mbdr_dsp_debug_stream_puts_void_p;
void mbdr_dsp_debug_stream_puts_do_nothing (void *pio_output_stream_manage_p)
{
  mbdr_dsp_debug_stream_puts_void_p = pio_output_stream_manage_p;
}

void mbdr_dsp_debug_stream_puts_print(void *pio_output_stream_manage_p,
                                      char *string_p)
{
  SHORT my_temp;
  mbdr_dsp_debug_stream_puts_void_p = pio_output_stream_manage_p;
  MBDR_DSP_DEBUG_PRINT_LINE_PUT_EOL_M(my_temp);
  puts(string_p);

}

/* called after synchronization */
void mbdr_dsp_debug_initialize_print_stream(void)
{/* mbdr_dsp_debug_initialize_print_stream */

  /* sets output stream to puts */
  mbdr_dsp_dbg_print_stream_p = &mbdr_dsp_dbg_print_stream_puts;

  /* starts output stream */
  mbdr_dsp_dbg_print_output_stream_open(mbdr_dsp_dbg_print_stream_p);

}/* mbdr_dsp_debug_initialize_print_stream */

//  /* close output stream */
//  mbdr_dsp_dbg_print_output_stream_close(mbdr_dsp_dbg_print_stream_p);

